0

PostgreSQL 9.5.4

In changing around the names on my schemas in the database, PostgreSQL added the schema name to each of the tables in the schema.

That is, companies became public.companies. Now in setting the default path, with

ALTER DATABASE chaos SET search_path TO public;

select * from companies fails. However, select * from public.companies works.

What can be done to either remove the unwanted schema name from its tables, and/or establish a search_path that respects the simple

select * from companies

TIA

Edit: The opening database definition does a "set search_path to public". However, when doing a "show search_path" in a PgAdmin III query session, "nova" is returned with "show search_path" -- is the problem with PgAdmin ?

Alan Wayne
  • 5,122
  • 10
  • 52
  • 95

0 Answers0