pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedTroubles with WAL and pg_control
3+ messages / 2 participants
[nested] [flat]
* Troubles with WAL and pg_control
@ 2002-04-24 10:43 Rasmus Mohr <rmo@Netpointers.com>
0 siblings, 1 reply; 3+ messages in thread
From: Rasmus Mohr @ 2002-04-24 10:43 UTC (permalink / raw)
To: pgsql-admin
Hi, we have serious problem with our postgresql db.
A staling query were killed and all the WAL files were deleted. Afterwards
any attempts to restart postmaster fails, probably due to missing links from
pg_control to the WAL files.
How do we solve this problem? Erasing all lines in pg_control did not
help...
--------------------------------------------------------------
Rasmus T. Mohr Direct : +45 36 910 122
Application Developer Mobile : +45 28 731 827
Netpointers Intl. ApS Phone : +45 70 117 117
Vestergade 18 B Fax : +45 70 115 115
1456 Copenhagen K Email : mailto:rmo@netpointers.com
Denmark Website : http://www.netpointers.com
"Remember that there are no bugs, only undocumented features."
--------------------------------------------------------------
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Troubles with WAL and pg_control
@ 2002-04-24 11:56 Rasmus Mohr <rmo@Netpointers.com>
0 siblings, 0 replies; 3+ messages in thread
From: Rasmus Mohr @ 2002-04-24 11:56 UTC (permalink / raw)
To: pgsql-admin
Ignore my previous desperate cry for help with a pg_control problem. It was
solved using:
/usr/lib/pgsql/contrib/pg_resetxlog/pg_resetxlog $PGDATA
...thx to Google ;-)
--------------------------------------------------------------
Rasmus T. Mohr Direct : +45 36 910 122
Application Developer Mobile : +45 28 731 827
Netpointers Intl. ApS Phone : +45 70 117 117
Vestergade 18 B Fax : +45 70 115 115
1456 Copenhagen K Email : mailto:rmo@netpointers.com
Denmark Website : http://www.netpointers.com
"Remember that there are no bugs, only undocumented features."
--------------------------------------------------------------
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Troubles with WAL and pg_control
@ 2002-04-24 14:53 Tom Lane <tgl@sss.pgh.pa.us>
parent: Rasmus Mohr <rmo@Netpointers.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2002-04-24 14:53 UTC (permalink / raw)
To: Rasmus Mohr <rmo@Netpointers.com>; +Cc: pgsql-admin
Rasmus Mohr <rmo@Netpointers.com> writes:
> Hi, we have serious problem with our postgresql db.
> A staling query were killed and all the WAL files were deleted.
Just for the benefit of onlookers: that was a really BAD idea.
The pg_xlog and pg_clog files are not optional; you *will* regret it
if you decide to delete 'em.
BTW, if you want to kill a runaway query, it's usually sufficient
to do "kill -INT" on the specific backend doing the query. This
executes a query-cancel, which should stop the query fairly quickly
without any damage to the rest of the system.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-04-24 14:53 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24 10:43 Troubles with WAL and pg_control Rasmus Mohr <rmo@Netpointers.com>
2002-04-24 14:53 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-04-24 11:56 Re: Troubles with WAL and pg_control Rasmus Mohr <rmo@Netpointers.com>
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