Re: OPERATOR FAMILY and pg_dump - Mailing list pgsql-hackers

From Tom Lane
Subject Re: OPERATOR FAMILY and pg_dump
Date
Msg-id 23896.1315411804@sss.pgh.pa.us
Whole thread Raw
In response to OPERATOR FAMILY and pg_dump  (Joe Abbate <jma@freedomcircle.com>)
Responses Re: OPERATOR FAMILY and pg_dump
List pgsql-hackers
Joe Abbate <jma@freedomcircle.com> writes:
> If a basic operator family is created, e.g.,
> create operator family of1 using btree;
> shouldn't pg_dump include this in its output?  If not, why?

Quoting from the pg_dump source code:
    * We want to dump the opfamily only if (1) it contains "loose" operators    * or functions, or (2) it contains an
opclasswith a different name or    * owner.  Otherwise it's sufficient to let it be created during creation    * of the
containedopclass, and not dumping it improves portability of    * the dump.
 

I guess if it contains no opclasses and no operators either, this code
won't dump it, but isn't it rather useless in such a case?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [v9.2] Fix Leaky View Problem
Next
From: Dave Cramer
Date:
Subject: Re: error building head on OS X 10.7.1