Re: DDL - TYPES

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: DDL - TYPES
Дата
Msg-id 8ab67ee36602a88a339182daff7cab4e585e13f3.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: DDL - TYPES  (Ron Johnson <ronljohnsonjr@gmail.com>)
Ответы Re: DDL - TYPES  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Thu, 2024-02-08 at 16:03 -0500, Ron Johnson wrote:
> > I am trying to find a way to generate the DDL of the TYPE, but have not been successful.
> >
> > The canonical way is
> >
> >   pg_dump --section=pre-data yourdbname | grep 'CREATE TYPE .*\.xxxxxxxx'
>
> They're never multi-line? 

Never, unless you create a type with a newline in its name:

  CREATE TYPE "my
  type" AS ENUM ('silly');

Yours,
Laurenz Albe



В списке pgsql-admin по дате отправления:

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: pg_basebackup --wal-method=fetch
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: pg_basebackup --wal-method=fetch