Re: Re: Inserts in triggers Follow Up

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Re: Inserts in triggers Follow Up
Дата
Msg-id web-91242@davinci.ethosmedia.com
обсуждение исходный текст
Список pgsql-sql
Tom,

> No, this isn't right.  If you check the source code you will discover
> that plpgsql is extremely lax about the positioning of the INTO
> clause,
> and will in fact accept it almost anywhere.  Datatype has nothing to
> do with this.  (It probably should be stricter, but at this point I
> doubt we could change it without drawing howls of anguish from those
> who did it the other way.)

Thanks for setting me straight, Tom.  I guess I combines some bugs in
7.0.2 with the original sketchy instructions and assumed that there were
stricter syntactical rules than there are.

This is good because it now means I can use the logical syntax of

SELECT data INTO var ...

    which to me is easier to read, for everything.

-Josh


______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Inserts in triggers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Inserts in triggers Follow Up