Skip site navigation (1) Skip section navigation (2)

Patch for pg_dump

From: "Dany DeBontridder" <dany118(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Patch for pg_dump
Date: 2007-05-03 15:39:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I often need  in command line to get the code of function, so I make a patch
for pg_dump, thanks this patch pg_dump is able to dump only one functions or
all the functions.

The argument is --object or -B

./pg_dump -Bfunction:test_it -Bfunction:dblink_open
To dump the functions  test_it, dblink_open
./pgdump --object=function or pg_dump -Bfunction to dump only the functions

It is possible to add other objects, (see getObject functions)

I hope you'll find it interesting.



(patch under BSD licence)

Attachment: patch-pg_dump.8.2.3.gz
Description: application/x-gzip (4.0 KB)


pgsql-hackers by date

Next:From: Joshua D. DrakeDate: 2007-05-03 16:43:29
Subject: Re: Feature freeze progress report
Previous:From: Andrew DunstanDate: 2007-05-03 14:28:47
Subject: Re: Feature freeze progress report

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group