Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Some additions ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 4927 of 5130
Post > Topic >>

Some additions to pg_filedump...

by darrenr+postgres@[EMAIL PROTECTED] ("Darren Reed") Apr 21, 2008 at 01:51 PM

I did a bit of hacking on pg_filedump to make it slightly more
useful...but it wasn't clear where or to whom the patches should
be sent, so I'm sending an email to pgsql-admins 'cause they're
the kind of folks that probably care about them...

The changes I added are two command line options:
-F <filter> to filter out which items get dumped.
   presently only works on the infomask field.
-T <types> to dump out each item according to either
   int,char,varchar,bool types (yes, I know, that's
   not all of the postgres types.)
-q to supress lots of additional output (quiet)

Now, combined they allow data to be recovered from a situation
where the index is fubar'd but you've still got good data and
you don't want to recover from backup...that said, there is
great danger because pg_filedump doesn't know which item from
the dataset is the most recent/alive one.

If there's further interest, I can add more types but the
warning above holds.  pg_filedump shouldn't be used for what
the above makes easy but I can't see why that shouldn't be
a decision we (and not the db) gets to make...

Cheers,
Darren

http://coombs.anu.edu.au/~avalon/pg_fd_FT.patch.gz

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 7 Posts in Topic:
Some additions to pg_filedump...
darrenr+postgres@[EMAIL P  2008-04-21 13:51:21 
Re: Some additions to pg_filedump...
devrim@[EMAIL PROTECTED]   2008-04-21 23:19:48 
Re: Some additions to pg_filedump...
darrenr+postgres@[EMAIL P  2008-04-23 11:55:58 
Re: Some additions to pg_filedump...
alvherre@[EMAIL PROTECTED  2008-04-23 09:20:49 
Re: Some additions to pg_filedump...
darrenr+postgres@[EMAIL P  2008-05-02 01:38:02 
Re: Some additions to pg_filedump...
devrim@[EMAIL PROTECTED]   2008-04-23 20:13:30 
Re: Some additions to pg_filedump...
darrenr+postgres@[EMAIL P  2008-04-24 06:04:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Tue Jul 8 22:55:48 CDT 2008.