Re: Be more clear what names can be used for tables with "CREATE TABLE"? - Mailing list pgsql-docs

From Jürgen Purtz
Subject Re: Be more clear what names can be used for tables with "CREATE TABLE"?
Date
Msg-id 998c5708-95f9-d58f-4480-5890b56138f7@purtz.de
Whole thread Raw
In response to Be more clear what names can be used for tables with "CREATE TABLE"?  ("Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>)
Responses Re: Be more clear what names can be used for tables with "CREATE TABLE"?  ("Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>)
List 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

pgsql-docs by date:

Previous
From: "Daniel Westermann (DWE)"
Date:
Subject: Be more clear what names can be used for tables with "CREATE TABLE"?
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Re: Be more clear what names can be used for tables with "CREATE TABLE"?