Re: Be more clear what names can be used for tables with "CREATE TABLE"?

From: Jürgen Purtz <juergen(at)purtz(dot)de>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Be more clear what names can be used for tables with "CREATE TABLE"?
Date: 2021-10-30 15:27:02
Message-ID: 998c5708-95f9-d58f-4480-5890b56138f7@purtz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

a) Don't forget: constraint, function, procedure, trigger.

b) The hint applies to each of such objects: CREATE
[TABLE|VIEW|FUNCTION|...]. To avoid such redundancy we could extend and
clarify the definition of 'SQL object / local object / global object'
within the glossary and refer to it.

c) In general we have 3 levels (namespaces) where object names are
unique across the same or different types.

* cluster-level: database name, tablespace, replication origin,
subscription for logical replication, role, ...?
* database-level: schema, extension, collation, data type cast, ...?
* schema-level: table, index, view, materialized view, foreign table,
sequence, constraint, function, procedure, trigger, operator, ...?

--

Jürgen Purtz

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Daniel Westermann (DWE) 2021-10-31 19:48:15 Re: Be more clear what names can be used for tables with "CREATE TABLE"?
Previous Message Daniel Westermann (DWE) 2021-10-30 11:08:15 Be more clear what names can be used for tables with "CREATE TABLE"?