Should not it be ERROR: relation [“schema name”].["table_name"] does not exist
instead? Lots of people use case sensitive relation names with dots and so forth. Eg:
t=# select * from public.t1;
ERROR: relation "public.t1" does not exist
LINE 1: select * from public.t1;
^
t=# create table "public.t1" (i int);
CREATE TABLE
t=# select * from public.t1;
ERROR: relation "public.t1" does not exist
LINE 1: select * from public.t1;
I am used to getting this error so much that I did not notice that it is misleading. And yet today I hit it with relation.name
and realized that error should not use double quotes like this. Is it intentional or should I address it as a bug?
select * from "public.t1"
before creating"public.t1"
What is the message in that case? What is your proposed alternative? And why are you discussing this here rather than on an appropriate PostgreSQL community site?"public.t1"
does not exist. I ask here before going to Pg comunity, because I could just miss some obvious point