| От | Tom Lane |
|---|---|
| Тема | Re: best way to reference tables |
| Дата | |
| Msg-id | 18564.1123617693@sss.pgh.pa.us обсуждение |
| Ответ на | Re: best way to reference tables ("TJ O'Donnell" <tjo@acm.org>) |
| Ответы |
Re: best way to reference tables
|
| Список | pgsql-general |
"TJ O'Donnell" <tjo@acm.org> writes:
> I guess what I'm asking is: Is there a better way to keep track of a
> table once it's registered in my master table than just to put its
> name in my master table? Some system oid type thing that stays fixed
> in spite of renames or other tables mods?
Yeah, you can store the pg_class OID of the table, instead of (or in
addition to) its name. This is exactly what the system itself considers
to be the "identity" of the table.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера