Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-24 Thread Simon Riggs
On Wed, 2009-04-22 at 13:31 -0400, Tom Lane wrote: > "Maria L. Wilson" writes: > > Question - is there any maintenance type item that we could to to check > > for uncommitted transactions on a regular basis - outside of the > > pg_prepared_xacts table? > > pg_prepared_xacts is the only SQL-le

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-22 Thread Tom Lane
"Maria L. Wilson" writes: > Question - is there any maintenance type item that we could to to check > for uncommitted transactions on a regular basis - outside of the > pg_prepared_xacts table? pg_prepared_xacts is the only SQL-level visibility there is. From a monitoring standpoint it might

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-22 Thread Joshua D. Drake
On Wed, 2009-04-22 at 13:10 -0400, Maria L. Wilson wrote: > wow - I am finally back in business!! > Question - is there any maintenance type item that we could to to check > for uncommitted transactions on a regular basis - outside of the > pg_prepared_xacts table? >How about from a dev

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-22 Thread Maria L. Wilson
wow - I am finally back in business!! Tom - the answer to your question is yes - these uncommitted transactions blocked the vacuuming. As soon as i got around getting the uncommitted transactions rollbacked - the vacuuming worked and things seemed fine. One other little thing i had was a cor

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-22 Thread Alvaro Herrera
Maria L. Wilson wrote: > yes - how do i get rid of these?? > > backend> select * from pg_prepared_xacts; > 2009-04-22 07:43:27.421 EDT [11767] [] WARNING: database "ange" must > be vacuumed within 976080 transactions > 2009-04-22 07:43:27.421 EDT [11767] [] HINT: To avoid a database > shu

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-22 Thread Tom Lane
"Maria L. Wilson" writes: > yes - how do i get rid of these?? Either COMMIT PREPARED or ROLLBACK PREPARED, depending on whether you think you want those old transactions to take effect or not. (Personally I'd go for ROLLBACK --- if you did not even know those transactions were open, you probably

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-22 Thread Maria L. Wilson
yes - how do i get rid of these?? backend> select * from pg_prepared_xacts; 2009-04-22 07:43:27.421 EDT [11767] [] WARNING: database "ange" must be vacuumed within 976080 transactions 2009-04-22 07:43:27.421 EDT [11767] [] HINT: To avoid a database shutdown, execute a full-database VACUUM

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-21 Thread Tom Lane
"Maria L. Wilson" writes: > i'm getting the following error. any ideas why this would be in > single user mode?? Maybe you've got some prepared transactions laying about? Check pg_prepared_xacts ... regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-adm

Re: [ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-21 Thread Maria L. Wilson
this is the command that i used to start the backend postgres --single -D /data/pg_devices ange Maria L. Wilson wrote: i'm getting the following error. any ideas why this would be in single user mode?? backend> drop database "scoogan_userprofile_1.2" 2009-04-21 18:18:23.032 EDT [

[ADMIN] postgres 8.2.9 can't drop database in single user mode

2009-04-21 Thread Maria L. Wilson
i'm getting the following error. any ideas why this would be in single user mode?? backend> drop database "scoogan_userprofile_1.2" 2009-04-21 18:18:23.032 EDT [11767] [] WARNING: database "ange" must be vacuumed within 976081 transactions 2009-04-21 18:18:23.032 EDT [11767] [] HINT: