| От | Richard Huxton |
|---|---|
| Тема | Re: table updated status |
| Дата | |
| Msg-id | 45C85160.2080806@archonet.com обсуждение исходный текст |
| Ответ на | table updated status ("finecur" <finecur@yahoo.com>) |
| Список | pgsql-general |
finecur wrote: > Hi, > > Can I list tables and the time they were last update (adding columns, > drop columns) using sql, something like the "ls -l" command under > unix? No. There's no automatic timestamping. You could add your own triggers if you wanted though. > Can I compare the table definitions (tables, fields, but not data) of > two database using sql, > something like the "diff file1, file2" command > under unix? You can use the standards-based information_schema views or the pg-specific system catalogue for this. See the manuals for details. You might find it useful to start psql with -E, that way \dt and the like will show you what SQL they execute. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера