| От | Michael Fuhr |
|---|---|
| Тема | Re: How to get tabloid |
| Дата | |
| Msg-id | 20050930173028.GA6035@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Re: How to get tabloid (Terry Lee Tucker <terry@esc1.com>) |
| Ответы |
Re: How to get tabloid
|
| Список | pgsql-novice |
On Fri, Sep 30, 2005 at 06:53:25AM -0400, Terry Lee Tucker wrote: > To answer at least part of my own question: > > SELECT oid FROM pg_class WHERE relname = 'cust'; > > apparently gives the tableoid. This query should restrict its results with pg_table_is_visible() -- otherwise you might get the wrong oid if the temporary table has the same name as a non-temporary table, or if multiple sessions have temporary tables with the same name. Here's another way: SELECT 'cust'::regclass::oid; -- Michael Fuhr
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера