Re: 8.1 and syntax checking at create time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.1 and syntax checking at create time
Дата
Msg-id 4058.1125516570@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 8.1 and syntax checking at create time  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
Ответы Re: 8.1 and syntax checking at create time  (Matt Miller <mattm@epx.com>)
Список pgsql-hackers
Matt Miller <mattm@epx.com> writes:
> On Wed, 2005-08-31 at 11:59 -0700, Josh Berkus wrote:
>> If a table does not exist, we don't want to check for that and bounce
>> the function; possibly the function will only be called in a context
>> where the table does exist.

> I am thankful that Oracle's PL/SQL compiler checks these things for me.
> I don't remember the last time I intended to write code that referenced
> something that did not exist in the database.

Almost every day, people try to write stuff like
CREATE TEMP TABLE foo ... ;INSERT INTO foo ... ;etc etcDROP TABLE foo ;

in plpgsql functions.  Now I know that that doesn't work very well,
but we should be going in the direction of fixing it to work well,
not installing error checks that are guaranteed to make it fail.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: 8.1 and syntax checking at create time
Следующее
От: Matt Miller
Дата:
Сообщение: Re: 8.1 and syntax checking at create time