Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Zdenek Kotala
The FREEZ option is deprecated. See http://www.postgresql.org/docs/8.3/interactive/sql-vacuum.html you should use vacuum_freeze_min_age instead. On other side it breaks vacuumdb backward compatibility which we did not declare, but it could be fine. Zdenek Bruce Momjian píše v út 17.

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Bruce Momjian
Zdenek Kotala wrote: The FREEZ option is deprecated. See http://www.postgresql.org/docs/8.3/interactive/sql-vacuum.html I mentioned PGOPTIONS as a suggestion when I posted but on one said that was a good idea; they just wanted to know why I needed this functionality. you should use

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Zdenek Kotala
Bruce Momjian píše v čt 19. 02. 2009 v 08:08 -0500: you should use vacuum_freeze_min_age instead. On other side it breaks vacuumdb backward compatibility which we did not declare, but it could be fine. How does adding a flag break backward compatibiity? I meant that

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Bruce Momjian
Zdenek Kotala wrote: Bruce Momjian p??e v ?t 19. 02. 2009 v 08:08 -0500: you should use vacuum_freeze_min_age instead. On other side it breaks vacuumdb backward compatibility which we did not declare, but it could be fine. How does adding a flag break backward compatibiity?

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Zeugswetter Andreas OSB sIT
One more question I have though is: How do you make sure noone (e.g. autovacuum analyze) unfreezes tuples after the vacuum freeze ? I will start a new thread to answer this question, but the short answer is that the freeze only needs to happen in a fresh initdb database, and once clog

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Tom Lane
Zeugswetter Andreas OSB sIT andreas.zeugswet...@s-itsolutions.at writes: I am still answering here because my question was related to upgrade. I think you need to turn off autovacuum before freezing to avoid a later analyze that unfreezes pg_class (or the stats table). vacuum analyze doesn't

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Bruce Momjian
Tom Lane wrote: Zeugswetter Andreas OSB sIT andreas.zeugswet...@s-itsolutions.at writes: I am still answering here because my question was related to upgrade. I think you need to turn off autovacuum before freezing to avoid a later analyze that unfreezes pg_class (or the stats table).

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: Tom Lane wrote: vacuum analyze doesn't unfreeze pg_class. It could create unfrozen tuples in pg_statistic, perhaps, but we could easily fix that by truncating pg_statistic afterwards (its not like there will be useful data there...) I have added

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian br...@momjian.us writes: Tom Lane wrote: vacuum analyze doesn't unfreeze pg_class. It could create unfrozen tuples in pg_statistic, perhaps, but we could easily fix that by truncating pg_statistic afterwards (its not like there will be useful data

Re: [HACKERS] vacuumdb --freeze

2009-02-19 Thread Bruce Momjian
Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian br...@momjian.us writes: Tom Lane wrote: vacuum analyze doesn't unfreeze pg_class. It could create unfrozen tuples in pg_statistic, perhaps, but we could easily fix that by truncating pg_statistic afterwards (its not like there

Re: [HACKERS] vacuumdb --freeze

2009-02-18 Thread Zeugswetter Andreas OSB sIT
I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. Exactly what do you think the upgrade utility is going to do with it? Surely not a database-wide VACUUM FREEZE, if we are

Re: [HACKERS] vacuumdb --freeze

2009-02-18 Thread Simon Riggs
On Tue, 2009-02-17 at 18:52 -0500, Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian br...@momjian.us writes: I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. Exactly

Re: [HACKERS] vacuumdb --freeze

2009-02-18 Thread Bruce Momjian
Bruce Momjian wrote: I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. I could also accomplish with with PGOPTIONs but this seem like a cleaner solution. Applied. -- Bruce

Re: [HACKERS] vacuumdb --freeze

2009-02-18 Thread Bruce Momjian
Zeugswetter Andreas OSB sIT wrote: I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. Exactly what do you think the upgrade utility is going to do with it? Surely

[HACKERS] vacuumdb --freeze

2009-02-17 Thread Bruce Momjian
I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. I could also accomplish with with PGOPTIONs but this seem like a cleaner solution. -- Bruce Momjian br...@momjian.us

Re: [HACKERS] vacuumdb --freeze

2009-02-17 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. Exactly what do you think the upgrade utility is going to do with it? Surely not a

Re: [HACKERS] vacuumdb --freeze

2009-02-17 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian br...@momjian.us writes: I would like to add a --freeze parameter to vacuumdb for use by the binary upgrade utility, and for symmetry with the existing VACUUM options; patch attached. Exactly what do you think the upgrade utility is going to do with it?