B
B
beduin012021-03-02 11:23:41
PostgreSQL
beduin01, 2021-03-02 11:23:41

When is the schema name "public" required?

I had code in which queries were executed without specifying the public schema, i.e. were simple:
SELECT * FROM tableName

Deployed a very similar configuration on a working Postgres 13.2 server, copied the query into the SQL manager and he cursed. that cannot fulfill it. schema is not specified. At the same time, apparently, requests from the code itself are executed. nothing falls.

"11:25:47 Kernel error: ERROR: relation 'tableName' does not exist." At the same time, the documentation says: "public is defined as the default schema name when no schema name is specified"

How can this be? Does the driver have an effect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-03-02
@ky0

There is such a thing, search_path . Perhaps it was set up in the old place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question