![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i've got a database that takes up 4G of space. when i run a script that deletes all rows and then vacuum, the data directory gets down to around 3-3.5G. what i'd like is to get a blank database structure that really contains no data at all, or any unused space at all. apparently that's not what i'm getting now. is there a way to get this apart from dump, initdb, restore? i figure that if i could dump/initdb/restore i'd probably get a data directory with around 30MB only. |
#3
| |||
| |||
|
|
hello all, i've got a database that takes up 4G of space. when i run a script that deletes all rows and then vacuum, the data directory gets down to around 3-3.5G. what i'd like is to get a blank database structure that really contains no data at all, or any unused space at all. apparently that's not what i'm getting now. is there a way to get this apart from dump, initdb, restore? i figure that if i could dump/initdb/restore i'd probably get a data directory with around 30MB only. |
|
Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a tool for doing 5% of the work and then sitting around waiting for someone else to do the other 95% so you can sue them. |
#4
| |||
| |||
|
|
the reason i can't do dump, initdb, restore is: I'm working with postgresql 7.1.x |
|
the database i'm working on has problems with pg_dump and restoring a dump because of recursive definitions (function selects from a table, table has a default or constraint referring to the function, neither can be created when the dump is restored because the other isn't defined yet). |
![]() |
| Thread Tools | |
| Display Modes | |
| |