| From: | Tino Wildenhain <tino(at)wildenhain(dot)de> | 
|---|---|
| To: | Richard Huxton <dev(at)archonet(dot)com> | 
| Cc: | Artacus <artacus(at)comcast(dot)net>, PostgreSQL <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Re: Getting source code for database objects | 
| Date: | 2008-07-09 10:34:10 | 
| Message-ID: | 48749422.7060402@wildenhain.de | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
Richard Huxton wrote:
> Artacus wrote:
>>
>>> Easier would be just uing pg_dump -s >schema.sql to get all schema 
>>> objects
>>> so you could check them into subversion. If you want only specific
>>> objects, pg_dump -l >listofobjects, then edit this list as you
>>> like and use pg_dump -L listofobjects >someobjects.sql
>>
>> The -l and -L options are not recognized on my server 8.3.
>>
>> I can use -t to iterate thru each table, but I don't see a way to do 
>> one function at a time.
> 
> They're part of pg_restore, not pg_dump. You need to use -F c with the 
> pg_dump to let pg_restore generate lists in this way.
> 
Ah yes, correct. Thats how it is when you write this from memory instead
of trying it ;-) I'm always operating on the pg_dump -F c file for 
consistency.
T.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Iv Ray | 2008-07-09 12:44:58 | MSSQL to PostgreSQL | 
| Previous Message | Asche | 2008-07-09 10:31:42 | Re: Hi there, new here and have question |