Re: Adding SHOW CREATE TABLE

Поиск
Список
Период
Сортировка
Искать
От
Thomas Kellerer
Тема
Re: Adding SHOW CREATE TABLE
Дата
в 15:54:00
Msg-id
5b7f8267-b6b9-b678-94c6-82d113936ea3@gmx.net
Ответ на
Adding SHOW CREATE TABLE (Nathaniel Sabanski)
Список
Дерево обсуждения
Adding SHOW CREATE TABLE Nathaniel Sabanski <sabanski.n@gmail.com>
Re: Adding SHOW CREATE TABLE Thomas Kellerer <shammat@gmx.net>
Re: Adding SHOW CREATE TABLE Stephen Frost <sfrost@snowman.net>
Re: Adding SHOW CREATE TABLE Nathaniel Sabanski <sabanski.n@gmail.com>
Re: Adding SHOW CREATE TABLE Thorsten Glaser <tg@evolvis.org>
Re: Adding SHOW CREATE TABLE "David G. Johnston" <david.g.johnston@gmail.com>
Re: Adding SHOW CREATE TABLE Nathaniel Sabanski <sabanski.n@gmail.com>
Re: Adding SHOW CREATE TABLE Nathaniel Sabanski <sabanski.n@gmail.com>
Re: Adding SHOW CREATE TABLE Stephen Frost <sfrost@snowman.net>
Re: Adding SHOW CREATE TABLE Tom Lane <tgl@sss.pgh.pa.us>
Re: Adding SHOW CREATE TABLE Stephen Frost <sfrost@snowman.net>
Re: Adding SHOW CREATE TABLE Kirk Wolak <wolakk@gmail.com>
Re: Adding SHOW CREATE TABLE Ron <ronljohnsonjr@gmail.com>
Re: Adding SHOW CREATE TABLE Kirk Wolak <wolakk@gmail.com>
Re: Adding SHOW CREATE TABLE Jeremy Smith <jeremy@musicsmith.net>
Re: Adding SHOW CREATE TABLE Kirk Wolak <wolakk@gmail.com>
Re: Adding SHOW CREATE TABLE Ron <ronljohnsonjr@gmail.com>
Re: Adding SHOW CREATE TABLE Stephen Frost <sfrost@snowman.net>
Re: Adding SHOW CREATE TABLE Kirk Wolak <wolakk@gmail.com>
Re: Adding SHOW CREATE TABLE Kirk Wolak <wolakk@gmail.com>
Re: Adding SHOW CREATE TABLE Stephen Frost <sfrost@snowman.net>
Nathaniel Sabanski schrieb am 12.05.2023 um 13:29:

> HN had a thread regarding the challenges faced by new users during
> the adoption of Postgres in 2023.
>
> One particular issue that garnered significant votes was the lack of
> a "SHOW CREATE TABLE" command, and seems like it would be an easy one
> to implement: https://news.ycombinator.com/item?id=35908991
>
> Considering the popularity of this request and its potential ease of
> implementation, I wanted to bring it to your attention, as it would
> likely enhance the user experience and alleviate some of the
> difficulties encountered by newcomers.
While it would be nice to have something like that, I don't think
it isn't really necessary. Pretty much every (GUI) SQL client provides
a way to see the DDL for objects in the database.

For psql fans \d typically is enough, and they would probably not mind
running pg_dump to get the full DDL.

I would think that especially newcomers start with a GUI client
that can do this.

If you check the source of any of the popular SQL clients that generates
the DDL for a table, then you will also quickly realize that this isn't
a trivial thing to do.

Thomas



В списке pgsql-general по дате отправления
От: Marc Millas
Дата:
Сообщение: Re: Death postgres
От: FOUTE K. Jaurès
Дата:
FAQ