pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Shutting down pgsql
2+ messages / 2 participants
[nested] [flat]

* Shutting down pgsql
@ 2003-12-10 16:00 Mark Warner <hammerhed@theitspecialists.net>
  2003-12-11 15:53 ` Re: Shutting down pgsql Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Mark Warner @ 2003-12-10 16:00 UTC (permalink / raw)
  To: pgsql-admin

Greetings,

    Is it possible, advisable, or terribly bad to shutdown a pgsql 
database with the do.maintenance script running? I have a 12gb db with 
about 780 tables that has been running maintenance now for approximately 
67 hours, and it is beginning to seriously degrade the performance of 
the application that drives. I am running on debian linux testing, with 
pgsql 7.3.4.

    So I am wondering if it is possible and advisable to either kill the 
task, or shut down the database in order to do some work on it.

Thanks,
Mark Warner.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Shutting down pgsql
  2003-12-10 16:00 Shutting down pgsql Mark Warner <hammerhed@theitspecialists.net>
@ 2003-12-11 15:53 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-12-11 15:53 UTC (permalink / raw)
  To: Mark Warner <hammerhed@theitspecialists.net>; +Cc: pgsql-admin

Mark Warner <hammerhed@theitspecialists.net> writes:
>     Is it possible, advisable, or terribly bad to shutdown a pgsql 
> database with the do.maintenance script running?

You didn't say exactly what that script is doing ... but in general
PG queries can be shut down safely.  What I'd do is kill the client
program running the script and then send SIGINT to the backend it's
connected to.  Shutting down the whole database is the hard way.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-12-11 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10 16:00 Shutting down pgsql Mark Warner <hammerhed@theitspecialists.net>
2003-12-11 15:53 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox