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

2021-10-31 Thread Laurenz Albe
On Sat, 2021-10-30 at 11:08 +, Daniel Westermann (DWE) wrote: > HI all, > > in the documentation for CREATE TABLE we have this sentence: > > "The name of the table must be distinct from the name of any other table, > sequence, index, view, or foreign table in the same schema." > > At least

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

2021-10-31 Thread Daniel Westermann (DWE)
>a) Don't forget: constraint, function, procedure, trigger. Functions don't count: postgres=# create function f() returns int as $$ select 1; $$ language sql; CREATE FUNCTION postgres=# create table f ( a int ); CREATE TABLE Procedures and constraints don't count: postgres=# create procedure p()