Re: Use uppercase keywords in foreign key tutorial

Bruce Momjian <bruce@momjian.us>

From: Bruce Momjian <bruce@momjian.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Euler Taveira <euler@eulerto.com>, David Rowley <dgrowleyml@gmail.com>, Erik Wienhold <ewie@ewie.name>, pgsql-docs@lists.postgresql.org
Date: 2025-10-29T20:34:24Z
Lists: 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.



Commits

  1. Doc: more uppercase keywords in SQLs

  2. Doc: use uppercase keywords in SQLs