From: Álvaro Herrera <alvherre@kurilemu.de>
To: Kirill Reshke <reshkekirill@gmail.com>
Cc: jian he <jian.universality@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt
Date: Fri, 22 Aug 2025 11:46:45 +0200
Message-ID: <202508220946.osn274hnjxez@alvherre.pgsql> (raw)
In-Reply-To: <CALdSSPiZtCRJhe=KdPKEmeYNZQe_yhQKVn3QCsfrCiNdOCTP0A@mail.gmail.com>
On 2025-Aug-21, Kirill Reshke wrote:
> I wouldn’t say this is misleading, but " a single relation" is indeed
> not precise enough. IMO we need a more precise term to distinguish
> regular relation and table func.
I'm not sure. See the definition of relation in the glossary:
https://www.postgresql.org/docs/18/glossary.html#GLOSSARY-RELATION
The generic term for all objects in a database that have a name and a
list of attributes defined in a specific order. Tables, sequences,
views, foreign tables, materialized views, composite types, and
indexes are all relations.
More generically, a relation is a set of tuples; for example, the
result of a query is also a relation.
In PostgreSQL, Class is an archaic synonym for relation.
(I wonder why this says "generically" rather than "generally". Is that
word choice a mistake?) Maybe in the "For example" clause we can also
mention table functions.
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: alvherre@kurilemu.de, reshkekirill@gmail.com, jian.universality@gmail.com
Subject: Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt
In-Reply-To: <202508220946.osn274hnjxez@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox