Re: Adding SHOW CREATE TABLE
| От | Ron |
|---|---|
| Тема | Re: Adding SHOW CREATE TABLE |
| Дата | |
| Msg-id | 1aac01a1-d9db-8048-9bfa-1e4f9bb69a03@gmail.com обсуждение |
| Ответ на | Re: Adding SHOW CREATE TABLE (Kirk Wolak <wolakk@gmail.com>) |
| Ответы |
Re: Adding SHOW CREATE TABLE
|
| Список | pgsql-general |
On 5/12/23 18:00, Kirk Wolak wrote:
[snip]
At other tables.
Absolutely!
Definitely triggers. And foreign keys.
ALTER statements, too. If CREATE TABLE ... LIKE ... { INCLUDING | EXCLUDING } { COMMENTS | COMPRESSION | CONSTRAINTS | DEFAULTS | GENERATED | IDENTITY | INDEXES | STATISTICS | STORAGE | ALL } can do it, then so should SHOW CREATE TABLE.
[snip]
Where do we draw the lines?
At other tables.
Does Table DDL include all indexes?
Absolutely!
It should include constraints, clearly. I would not think it should have triggers.
Definitely triggers. And foreign keys.
Literally everything within the <<CREATE TABLE X(...);>>. (ie, no ALTER .. OWNER TO...)
ALTER statements, too. If CREATE TABLE ... LIKE ... { INCLUDING | EXCLUDING } { COMMENTS | COMPRESSION | CONSTRAINTS | DEFAULTS | GENERATED | IDENTITY | INDEXES | STATISTICS | STORAGE | ALL } can do it, then so should SHOW CREATE TABLE.
--
Born in Arizona, moved to Babylonia.
Born in Arizona, moved to Babylonia.
В списке pgsql-general по дате отправления: