Re: Getting result set metadata without executing query?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting result set metadata without executing query?
Дата
Msg-id 16686.1026308727@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Getting result set metadata without executing query?  (Marc Ramirez <mrami@mrami.homeunix.org>)
Ответы Re: Getting result set metadata without executing query?  (Marc Ramirez <mrami@mrami.homeunix.org>)
Re: Getting result set metadata without executing query?  (Tom Ansley <tansley@law.du.edu>)
Список pgsql-novice
Marc Ramirez <mrami@mrami.homeunix.org> writes:
> Is this possible with PostgreSQL?

SELECT * FROM foo LIMIT 0

works in recent releases, though I think not before 7.1 or so.

You'd want to avoid anything that involves a SORT step, though,
since it's not truly "not executing the query", just abandoning
it as soon as the first output row has been generated internally.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Marc Ramirez
Дата:
Сообщение: Getting result set metadata without executing query?
Следующее
От: Pam Wampler
Дата:
Сообщение: Re: oid2name