Error prone compilation of stored procedure

Поиск
Список
Период
Сортировка
От pinker
Тема Error prone compilation of stored procedure
Дата
Msg-id 1436177299736-5856699.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: Error prone compilation of stored procedure  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: Error prone compilation of stored procedure  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
What's the reason behind very "tolerant" error checking during stored
procedure compilation?
Why PostgreSQL allows using variable (j_var) that doesn't exists? It isn't
column name or isn't declared anywhere. Like in example below:

CREATE OR REPLACE FUNCTION test()
  RETURNS int AS
$BODY$
BEGIN

select 1 WHERE 1 > j_var;
    RETURN 2;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;



--
View this message in context: http://postgresql.nabble.com/Error-prone-compilation-of-stored-procedure-tp5856699.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: Fabio Pardi
Дата:
Сообщение: Re: max number of locks
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Error prone compilation of stored procedure