Re: Get the table creation DDL - Mailing list pgsql-general

From Michael Nolan
Subject Re: Get the table creation DDL
Date
Msg-id CAOzAquJOSJVya6Ap5-qGTemQ2f_NuN_Qtg1wM0=COSKhodHYoQ@mail.gmail.com
Whole thread Raw
In response to Get the table creation DDL  (Igor Korot <ikorot01@gmail.com>)
Responses Re: Get the table creation DDL
List pgsql-general


On Sun, Jul 10, 2022 at 10:28 AM Igor Korot <ikorot01@gmail.com> wrote:
Hi,
Is there a query I can execute that will give me CREATE TABLE() command
used to create a table?

Thank you.

Use pg_dump --schema-only
--
Mike Nolan

pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Get the table creation DDL
Next
From: Igor Korot
Date:
Subject: Re: Get the table creation DDL