pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedTruly bizarre behavior with VACUUM FULL?
4+ messages / 2 participants
[nested] [flat]
* Truly bizarre behavior with VACUUM FULL?
@ 2003-04-18 22:25 Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 4+ messages in thread
From: Josh Berkus @ 2003-04-18 22:25 UTC (permalink / raw)
To: pgsql-sql
Folks,
I have a system on a 7.2.4 database. Let me tell you what appears to be
happening:
I have a bug-fixed version of a function, which replaced a buggy version of
the function via CREATE OR REPLACE. Each night, when the database goes
through VACUUM FULL, the old (buggy) version of the function seems to
overwrite the new (correct) version of the function.
Is it possible that VACUUM FULL is restoring the discarded tuple in the system
table and dropping the valid one?
I can think of ways to fix this bizarre behavior, but thought that someone
might want to look at it first.
--
-Josh Berkus
Aglio Database Solutions
San Francisco
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Truly bizarre behavior with VACUUM FULL?
@ 2003-04-19 00:13 Tom Lane <tgl@sss.pgh.pa.us>
parent: Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2003-04-19 00:13 UTC (permalink / raw)
To: josh@agliodbs.com; +Cc: pgsql-sql
Josh Berkus <josh@agliodbs.com> writes:
> Is it possible that VACUUM FULL is restoring the discarded tuple in
> the system table and dropping the valid one?
Fairly difficult to believe...
What is causing the new improved version to come back again? Are you
doing another manual CREATE OR REPLACE each day? How exactly?
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Truly bizarre behavior with VACUUM FULL?
@ 2003-04-19 01:49 Josh Berkus <josh@agliodbs.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Josh Berkus @ 2003-04-19 01:49 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql
Tom,
> What is causing the new improved version to come back again? Are you
> doing another manual CREATE OR REPLACE each day? How exactly?
Manual CREATE OR REPLACE, yes. And then I test it. And it works for the
rest of the day ...
--
-Josh Berkus
Aglio Database Solutions
San Francisco
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Truly bizarre behavior with VACUUM FULL?
@ 2003-04-19 01:54 Tom Lane <tgl@sss.pgh.pa.us>
parent: Josh Berkus <josh@agliodbs.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2003-04-19 01:54 UTC (permalink / raw)
To: josh@agliodbs.com; +Cc: pgsql-sql
Josh Berkus <josh@agliodbs.com> writes:
>> What is causing the new improved version to come back again? Are you
>> doing another manual CREATE OR REPLACE each day? How exactly?
> Manual CREATE OR REPLACE, yes. And then I test it. And it works for the
> rest of the day ...
So try a VACUUM FULL right after you fix it, instead of waiting for the
cron job to fire.
My bet is that there is something else being done by your nightly script
that is restoring the old definition.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-04-19 01:54 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-18 22:25 Truly bizarre behavior with VACUUM FULL? Josh Berkus <josh@agliodbs.com>
2003-04-19 00:13 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-04-19 01:49 ` Josh Berkus <josh@agliodbs.com>
2003-04-19 01:54 ` 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