Re: Re: incorrect exit code from psql with single transaction + violation of deferred FK constraint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: incorrect exit code from psql with single transaction + violation of deferred FK constraint
Дата
Msg-id 22661.1268004398@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: incorrect exit code from psql with single transaction + violation of deferred FK constraint  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Re: incorrect exit code from psql with single transaction + violation of deferred FK constraint  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> The attached patch checks for the proper return from BEGIN/COMMIT, and
> properly frees the libpq structures.  In testing, this does return 3 as
> you expected.

Really?  It looks to me like you'd get exit(1).  Maybe that's the right
thing, but MainLoop itself seems to return EXIT_USER not EXIT_FAILURE
when it gets an error.
        regards, tom lane


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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: psql with GSS can crash
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: incorrect exit code from psql with single transaction + violation of deferred FK constraint