Re: pg_dump vs schemas - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump vs schemas
Date
Msg-id 5176.1184379375@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump vs schemas  (Francisco Reyes <lists@stringsutils.com>)
List pgsql-general
Francisco Reyes <lists@stringsutils.com> writes:
> I however noticed that pg_dump also does this:
> ALTER TABLE public.mytable OWNER TO pgsql;

> Shouldn't the "public." be left out?

Probably in an ideal world, but that code is far from ideal --- it's
dealing with a bunch of considerations including compatibility with dump
files from old pg_dump versions with assorted bugs.  I'm hesitant to
remove the schema spec for fear we'd end up with underspecified output
in some corner case or other.

            regards, tom lane

pgsql-general by date:

Previous
From: Steve Atkins
Date:
Subject: Re: PostgreSQL equivelant of this MySQL query
Next
From: Madison Kelly
Date:
Subject: Re: PostgreSQL equivelant of this MySQL query