Re: DDL - TYPES - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: DDL - TYPES
Date
Msg-id 8ab67ee36602a88a339182daff7cab4e585e13f3.camel@cybertec.at
Whole thread Raw
In response to Re: DDL - TYPES  (Ron Johnson <ronljohnsonjr@gmail.com>)
Responses Re: DDL - TYPES
List 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 by date:

Previous
From: Ron Johnson
Date:
Subject: Re: pg_basebackup --wal-method=fetch
Next
From: Stephen Frost
Date:
Subject: Re: pg_basebackup --wal-method=fetch