Re: Postgres locks table schema? - Mailing list pgsql-general

From Stas Oskin
Subject Re: Postgres locks table schema?
Date
Msg-id 200509220858.CLR19460@romy.inter.net.il
Whole thread Raw
In response to Re: Postgres locks table schema?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi.

I will give it a try. Although, I do remember that the lock occurs on the
first transaction - so basically there should be nothing to commit yet?

Thanks,
Stas.

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Wednesday, September 21, 2005 9:35 PM
To: Stas Oskin
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Postgres locks table schema?

"Stas Oskin" <stas@neo.co.il> writes:
> When running SQL scripts, which change the tables' schema, we sometimes
> experience a lock of these tables' schema. The lock occurs on the first
> command of the script, on the first modified table. When this occurs, no
> further schema modification for this table is possible, until the server
is
> restarted, which is very problematic for a production environment.

Try committing the transaction that performed the schema modification
;-)

            regards, tom lane


pgsql-general by date:

Previous
From: "Alex R. Mosteo"
Date:
Subject: Re: Problem with libpq3 & postgresql8
Next
From: Howard Cole
Date:
Subject: Re: Win32 Backup and Restore of large databases.