Search Postgresql Archives

Re: Getting source code for database objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux