#Personal#: Reg: Multiple queries in a transaction

Поиск
Список
Период
Сортировка
От Medhavi Mahansaria
Тема #Personal#: Reg: Multiple queries in a transaction
Дата
Msg-id OFF3E794A5.7FA2035D-ON65257DF0.0052713C-65257DF0.005303DC@tcs.com
обсуждение исходный текст
Ответы Re: #Personal#: Reg: Multiple queries in a transaction  (Bill Moran <wmoran@potentialtech.com>)
Re: #Personal#: Reg: Multiple queries in a transaction  (Kevin Grittner <kgrittn@ymail.com>)
Re: #Personal#: Reg: Multiple queries in a transaction  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-general
Hi,

I need to execute a series of queries in a transaction, say Q1, Q2, Q3.

Q1 -> success
Q2 -> Failed
Q3 -> Success

My issue is that after Q2 fails all the queries that  follow give error "ERROR: current transaction is aborted, commands ignored until end of transaction block"

I want to move ahead in the transaction and execute Q3 also even though Q2 was a failure.

Can you please suggest a way to do so in PostgreSQL 9.3.

Is there a way to turn autocommit off?

Thanks & Regards
Medhavi Mahansaria
Tata Consultancy Services Limited
Unit-VI, No.78, 79& 83,
L-Centre, EPIP Industrial Estate,
Whitefield
Bangalore - 560066,Karnataka
India
Ph:- +91 80 67253769
Cell:- +91 9620053040
Mailto: medhavi.mahansaria@tcs.com
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Consulting
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

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

Предыдущее
От: Rémi Cura
Дата:
Сообщение: Re: Missing table from in INSERT RETURNING
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Failure loading materialized view with pg_restore