Postgresql prepared transactions

From: Radosław Smogura <rsmogura(at)softperience(dot)eu>
To: pgsql-general(at)postgresql(dot)org
Subject: Postgresql prepared transactions
Date: 2011-02-18 23:29:59
Message-ID: 201102190030.00120.rsmogura@softperience.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I do following commands

test=# BEGIN;
BEGIN
test=# insert into testxa1 values(1);
INSERT 0 1
test=# insert ddddduuuuuppppp;
ERROR: syntax error at or near "ddddduuuuuppppp"
LINE 1: insert ddddduuuuuppppp;
^
test=# PREPARE TRANSACTION 'a';
ROLLBACK

Why on prepare transaction I got rollback. If I skip error, each RM will try
to do two-phase commit, but it's looks impossible to do two-phase commit.

Regards,
Radek

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-02-18 23:48:00 Re: Postgresql prepared transactions
Previous Message Mike Christensen 2011-02-18 23:18:04 Re: Explicit NULL for no INTEGER data? -- Update