Re: pgadmin III query

From: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
To: Peter Kroon <plakroon(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgadmin III query
Date: 2013-12-06 11:02:38
Message-ID: CAB8KJ=jmcoobcQikwC+9Td1_2V49Adtu5Bc+3Y7cvMkigskrTg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2013/12/6 Peter Kroon <plakroon(at)gmail(dot)com>:
> When you click on a table in the "Object browser" you'll see in the "SQL
> pane" the sql that is needed to create that table.
>
> Which function can I call to get that SQL?

You can use the pg_dump command line function for this:

pg_dump -s -t name_of_table name_of_database

Regards

Ian Barwick

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Kroon 2013-12-06 11:04:32 Re: pgadmin III query
Previous Message Jov 2013-12-06 10:58:41 Re: pgadmin III query