shakahsha...@gmail.com wrote: > -- PostgreSQL database dump > -- > -- pg_dump version: 8.5devel > -- > -- remote database version: 8.5devel (80500) > -- >
FWIW, and I havent read the entire thread, but pg_dump already *stores* this information in a custom format. Try: pg_dump -Fc blah pg_restore -L ... and you will get something like: ; ; Archive created at Sun Nov 29 12:34:24 2009 ; dbname: blah ; TOC Entries: 202 ; Compression: -1 ; Dump Version: 1.10-0 ; Format: CUSTOM ; Integer: 4 bytes ; Offset: 8 bytes ; Dumped from database version: 8.0.3 ; Dumped by pg_dump version: 8.0.3 ; so, all that is needed is to add the relevant statements into the output code. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers