Re: Use uppercase keywords in foreign key tutorial - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: Use uppercase keywords in foreign key tutorial
Date
Msg-id aQJ6UIrQeC6impXg@momjian.us
Whole thread Raw
In response to Re: Use uppercase keywords in foreign key tutorial  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Use uppercase keywords in foreign key tutorial
List pgsql-docs
On Tue, Oct 28, 2025 at 04:34:45PM -0500, Nathan Bossart wrote:
> I noticed the patch also changes some column types to lowercase:
> 
>  <programlisting>
>  CREATE TYPE tablefunc_crosstab_N AS (
> -    row_name TEXT,
> -    category_1 TEXT,
> -    category_2 TEXT,
> +    row_name text,
> +    category_1 text,
> +    category_2 text,
>          .
>          .
>          .
> -    category_N TEXT
> +    category_N text
>  );
>  </programlisting>
> 
> FWIW I tend to use uppercase for those, too, but I'm not sure there is a
> preferred style for the docs.

Agreed, uppercase is better for type names.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Do not let urgent matters crowd out time for investment in the future.



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: recovery_target_time format explanation should be clarified when using UTC zone
Next
From: Tom Lane
Date:
Subject: Re: Use uppercase keywords in foreign key tutorial