Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression
В списке pgsql-sql по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression |
| Дата | |
| Msg-id | 8487.1170950356@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression (Michael Fuhr <mike@fuhr.org>) |
| Список | pgsql-sql |
Michael Fuhr <mike@fuhr.org> writes:
> On Thu, Feb 08, 2007 at 10:32:25AM -0500, Tom Lane wrote:
>> My advice is not to try to execute multiple commands in the same EXECUTE
>> string --- if we were going to do anything to "fix" this, I think it
>> would be along the lines of enforcing that advice. Trying to make the
>> world safe for it doesn't sound productive.
> The SPI_execute() documentation does mention that multiple commands
> are allowed:
Well, the point here is that there's one pass of parsing and one of
execution, and you won't get far if the parsing pass requires an earlier
command to have already been executed. So maybe the appropriate warning
is something about not using interdependent DDL commands. Feel free to
draft up a docs patch.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера