On Sep 14, 2009, at 10:27 AM, Thom Brown wrote:
Erk... I forgot to mention I don't wish to use command-line tools
either. I would like to submit something as a query in PHP and get
back a result with the creation script in. This is to modify some
existing code which is currently only sup
Erk... I forgot to mention I don't wish to use command-line tools either. I
would like to submit something as a query in PHP and get back a result with
the creation script in. This is to modify some existing code which is
currently only supporting MySQL.
Thom
2009/9/14 Chris Barnes
> pg_dump
pg_dump --schema-only --schema=SCHEMA --table=TABLE
produces creation script.
Chris
http://www.postgresql.org/docs/8.0/interactive/backup.html
From: thombr...@gmail.com
Date: Mon, 14 Sep 2009 16:15:23 +0100
Subject: [GENERAL] Reverse-engineering table creation statements
To: pgsql-