Re: Transaction aborts on syntax error.

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Transaction aborts on syntax error.
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA49620AF@m0114.s-mxs.net
обсуждение исходный текст
Ответ на Transaction aborts on syntax error.  (ramirez@idconcepts.org (Edwin S. Ramirez))
Ответы Re: Transaction aborts on syntax error.  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Re: Transaction aborts on syntax error.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
>> Improving on "not ideal" would be good, and would get even closer to
>> full Oracle/SQLServer migration/compatibility. However, since I've never
>> looked at that section of code, I couldn't comment on any particular
>> approach nor implement such a change, so I'll shut up and be patient.
>
> Imagine this:
>
>     BEGIN WORK;
>     LOCK oldtab;
>     CREATE_X TABLE newtab AS SELECT * FROM oldtab;
>     DELETE oldtab;
>     COMMIT
>
> In this case, you would want the database to abort on a syntax error, right?

Yeah, but in other db's this is solved by the frontend. e.g. in Informix
dbaccess has a mode that simply stops execution upon first error. So I don't
think this is a nogo argument, if we added such a feature to psql.

Imagine your script continuing with "insert into newtab ..." after the commit,
wouldn't you actually want that to not run eighter ?

Andreas


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

Предыдущее
От: "Thomas Hallgren"
Дата:
Сообщение: Re: Request for additional SPI functions.
Следующее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: Re: Transaction aborts on syntax error.