My question about autonomous transaction

Started by 高健almost 13 years ago3 messagesgeneral
Jump to latest
#1高健
luckyjackgao@gmail.com

Hello:

I have found the following wiki about autonomous transaction:

https://wiki.postgresql.org/wiki/Autonomous_subtransactions

But when I test it, I found the following error:

pgsql=# BEGIN;

BEGIN

pgsql=# INSERT INTO tab01 VALUES (1);

INSERT 0 1

pgsql=# BEGIN SUBTRANSACTION;

ERROR: syntax error at or near "SUBTRANSACTION"

LINE 1: BEGIN SUBTRANSACTION;

^

pgsql=#

So that sub transaction is still not supported in PostgreSQL,

Is my understanding right?

Best Regards

#2Adrian.Vondendriesch
Adrian.Vondendriesch@credativ.de
In reply to: 高健 (#1)
Re: My question about autonomous transaction

Hello,

Am 09.07.2013 11:29, schrieb 高健:

Hello:

I have found the following wiki about autonomous transaction:

https://wiki.postgresql.org/wiki/Autonomous_subtransactions

But when I test it, I found the following error:

pgsql=# BEGIN;

BEGIN

pgsql=# INSERT INTO tab01 VALUES (1);

INSERT 0 1

pgsql=# BEGIN SUBTRANSACTION;

ERROR: syntax error at or near "SUBTRANSACTION"

LINE 1: BEGIN SUBTRANSACTION;

^

pgsql=#

So that sub transaction is still not supported in PostgreSQL,

Is my understanding right?

Yes it is.

If you have a look at the todo list at
http://wiki.postgresql.org/wiki/Todo (Exotic Features) you will see,
that it's marked as outstanding.

Best Regards

Best Regards

- Adrian

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#3高健
luckyjackgao@gmail.com
In reply to: Adrian.Vondendriesch (#2)
Re: My question about autonomous transaction

Thank you !

Best Regards

2013/7/9 Adrian.Vondendriesch <Adrian.Vondendriesch@credativ.de>

Show quoted text

Hello,

Am 09.07.2013 11:29, schrieb 高健:

Hello:

I have found the following wiki about autonomous transaction:

https://wiki.postgresql.org/wiki/Autonomous_subtransactions

But when I test it, I found the following error:

pgsql=# BEGIN;

BEGIN

pgsql=# INSERT INTO tab01 VALUES (1);

INSERT 0 1

pgsql=# BEGIN SUBTRANSACTION;

ERROR: syntax error at or near "SUBTRANSACTION"

LINE 1: BEGIN SUBTRANSACTION;

^

pgsql=#

So that sub transaction is still not supported in PostgreSQL,

Is my understanding right?

Yes it is.

If you have a look at the todo list at
http://wiki.postgresql.org/wiki/Todo (Exotic Features) you will see,
that it's marked as outstanding.

Best Regards

Best Regards

- Adrian