From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Brice Maron <bmaron(at)gmail(dot)com> |
Cc: | pgsql-gui-dev(at)lists(dot)postgresql(dot)org |
Subject: | Re: Sqlectron |
Date: | 2018-01-22 22:04:43 |
Message-ID: | 0ec78f52-e346-1217-a650-d75028ad600a@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-gui-dev |
On 01/22/2018 04:38 PM, Brice Maron wrote:
> but what i was really looking for is something more in the shape of :
>> Create table foo (id integer, ...., );
> as pg_dump can give you
Ah, for that you probably need to look through pg_dump source code, or
perhaps pgadmin source code for a head start. There are also functions here:
https://www.postgresql.org/docs/10/static/functions-info.html
But really the simplest answer in my experience is to use pg_dump with
--schema-only and --table=table options.
Joe
--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
From | Date | Subject | |
---|---|---|---|
Next Message | Serge Rider | 2018-02-03 06:57:39 | DBeaver |
Previous Message | Brice Maron | 2018-01-22 21:38:58 | Re: Sqlectron |