Re: Retail DDL
От | Tom Lane |
---|---|
Тема | Re: Retail DDL |
Дата | |
Msg-id | 346756.1755525441@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Retail DDL (Jelte Fennema-Nio <postgres@jeltef.nl>) |
Ответы |
Re: Retail DDL
Re: Retail DDL Re: Retail DDL |
Список | pgsql-hackers |
Jelte Fennema-Nio <postgres@jeltef.nl> writes: > On Sat, 16 Aug 2025 at 16:23, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> So I don't really buy Álvaro's argument above. It'd be better >> to design to some concrete requirement that isn't either of >> those. Unfortunately, it's not clear to me that anyone has >> a concrete use-case in mind that isn't either of those. > I have wanted this MANY times. I've had this as a PG user: I think > it's literally the first thing I did when connecting to a Postgres > server the first time. Coming from MySQL, I wanted to see the exact > table definition, and there it was as easy as "DESCRIBE some_table". You haven't actually defined what "this" is. For starters, do you really want this output to be included in \d? Seems like one part or the other of such output would be clutter, so I'd be more minded to leave \d alone and invent some new command. (By analogy to \sf, maybe \st and so on?) But the real issue is what to print. In the case of a table, should we also show its indexes? What about foreign keys to or from other tables? If it's a partitioned table, what about the partitions? I'm not sure this is as simple as it seems. regards, tom lane
В списке pgsql-hackers по дате отправления: