Dumb question about parser vs. parse analyzer - Mailing list pgsql-hackers

From murphy pope
Subject Dumb question about parser vs. parse analyzer
Date
Msg-id 1090273290.5104.77.camel@localhost.localdomain
Whole thread Raw
Responses Re: Dumb question about parser vs. parse analyzer  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
At the top of backend/parser/gram.y there's a big comment that says "don't do any database access during the parse
phase,just in case we're in the middle of an aborted transaction".<br /><br /> I don't get it.  Why would database
accessfail during an aborted transaction?  Any changes have to be thrown away at the end of the transaction anyway,
right? Or is it that changes are invalidated as soon as an error occurs?  Is the parser just trying to avoid
per-statementtriggers after an error occurs?<br /><br /> Can anyone explain?  I've done some simple testing (just out
ofcuriosity) but I can't seem to get anything to break if I always force IsAbortedTransactionBlockState() to return
false.<br/><br /> TIA.<br /><br />          -- Murphy  

pgsql-hackers by date:

Previous
From: Barry S
Date:
Subject: Re: PG 7.4.3 optimizer choosing sequential scan. Why?
Next
From: Tom Lane
Date:
Subject: Re: PITR COPY Failure (was Point in Time Recovery)