Re: BEGIN inside transaction should be an error - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: BEGIN inside transaction should be an error
Date
Msg-id 4462C07F.5050800@zigo.dhs.org
Whole thread Raw
In response to Re: BEGIN inside transaction should be an error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane skrev:
> The SQL99 spec does say (in describing START TRANSACTION,
> which is the standard spelling of BEGIN)
>
>          1) If a <start transaction statement> statement is executed when an
>             SQL-transaction is currently active, then an exception condition
>             is raised: invalid transaction state - active SQL-transaction.
>
> *However*, they are almost certainly expecting that that condition only
> causes the START command to be ignored; not that it should bounce the
> whole transaction.

What is the definition of an "exception condition"?

I thought that it ment that a transaction should fail and that 
"completion condition" are
used for warnings that doesn't abort transactions. As an example I 
looked up division
by zero in sql99 and it say this:
 "If the value of a divisor is zero, then an exception condition  is raised: data exception - division by zero."

Do you mean that some exception conditions fail transactions and some 
doesn't?

/Dennis



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [COMMITTERS] pgsql: Clean up code associated with updating pg_class statistics
Next
From: Josh Berkus
Date:
Subject: Warning -- PostgreSQL Anniversary Cutoff Approaching