In pg_dump "no owner" mode don't dump owner names in comments

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: In pg_dump "no owner" mode don't dump owner names in comments
Date: 2005-11-21 07:32:35
Message-ID: 43817813.6090408@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This fixes pg_dump so that when using the '-O' no owners option it does
not print the owner name in the object comment.

eg:

--
-- Name: actor; Type: TABLE; Schema: public; Owner: chriskl; Tablespace:
--

Becomes:

--
-- Name: actor; Type: TABLE; Schema: public; Owner: -; Tablespace:
--

This makes it far easier to do 'user independent' dumps. Especially for
distribution to third parties.

Chris

Attachment Content-Type Size
noowner.txt text/plain 994 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2005-11-21 13:33:08 Re: DROP OWNED again
Previous Message Andrew Dunstan 2005-11-20 20:30:15 Re: Numeric 508 datatype