Re: Create view is not accepting the parameter in postgres functions

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Create view is not accepting the parameter in postgres functions
Дата
Msg-id CAHyXU0xCiONWOvAsJ4c=2T2_TjpXcWCWbdinJOGhTpqV_ozYiA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Create view is not accepting the parameter in postgres functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Jun 13, 2012 at 12:25 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Merlin Moncure <mmoncure@gmail.com> writes:
>> The CREATE VIEW statement does not allow parameterized arguments
>> apparently.
>
> Well, no.  What would it mean?  The view is likely to outlast the
> existence of the function argument.

right -- it's quite sensible even if superficially unusual: for
vanilla queries there is a very clear line between what can be
parameterized and what can't. CREATE VIEW looks like a query but does
something completely different and so obeys a different set of rules.

merlin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Create view is not accepting the parameter in postgres functions
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Problem with pg_upgrade 8.3 to 9.1.4 - clog missing?!