| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Artacus <artacus(at)comcast(dot)net> |
| Cc: | PostgreSQL <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Getting source code for database objects |
| Date: | 2008-07-09 04:02:02 |
| Message-ID: | 20080709040202.GI4095@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Artacus wrote:
> On pgadmin, when you click on a table or function, you get the source
> code (DDL) to create that table or function.
>
> I want to take that and check it into subversion so I have one file for
> each table, function, view, etc. My question is, how do you get that
> source code? I've been playing with pgadmin and wireshark trying to
> figure out what commands or queries it is using to no avail.
Fire up psql -E and do a few \d commands. It'll show you the SQL used
to describe the objects.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Klint Gore | 2008-07-09 04:36:56 | Re: Getting source code for database objects |
| Previous Message | Jonathan Bond-Caron | 2008-07-09 03:45:26 | Feature: FOR UPDATE SKIP LOCKED |