Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

From: Jaco de Groot <jaco(at)gospelsjop(dot)com>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions
Date: 1999-11-28 11:44:45
Message-ID: 384115AD.E9C8B29F@gospelsjop.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Mike Mascari wrote:
>
> >From an otherwise EXTREMELY happy user :-) (full smile...), I see 3
> scenarios:
>
> (1) Disallow DDL statements in transactions
> (2) Send NOTICE's asking for the user to not trigger the bug until the bugs
> can be fixed -or-
> (3) Have all DDL statements implicity commit any running transactions.

I think 1 is the best solution as long as there are bugs concerning DDL
statements in transactions. It will prevent people from getting in
trouble. I've been in this trouble for months :-(. I'm using Java
Servlets to connect to PostgreSQL and I'm having DDL statements whitin
transactions wich sometimes cause an error. This error is hard to find
and solve if you don't know PostgreSQL has problems with DDL statements
in transactions. And if the error occures it doesn't simply crash 1
transaction or connection but it crashes all connections wich prevents
my website from running correctly until I've manualy fixed the problem
(mostly restarting PostgreSQL). To prevent others from getting in the
same trouble I'd like to propose that the next release of PosgreSQL
will dissalow DDL statements in transactions and notice the user this
is a feature wich is currently in development.

Jaco de Groot

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Sneed 1999-11-28 21:21:40 Quoting/Escaping
Previous Message Jaco de Groot 1999-11-28 11:37:30 Re: [GENERAL] drop/rename table and transactions

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-11-28 15:14:19 Re: [HACKERS] Re: [PATCHES] A bag of psql goodies
Previous Message Jaco de Groot 1999-11-28 11:37:30 Re: [GENERAL] drop/rename table and transactions