Re: parallel restore fixes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: parallel restore fixes
Date
Msg-id 18107.1236642634@sss.pgh.pa.us
Whole thread Raw
In response to Re: parallel restore fixes  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: parallel restore fixes  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Hmm, if pg_restore is the only program that's threaded, why are you
> calling init_dump_utils on pg_dump and pg_dumpall?

... because fmtId will crash on *any* use without that.

> It makes me a bit
> nervous because there are some other programs that are linking
> dumputils.c (psql and some in src/bin/scripts/) and even calling fmtId.

Actually, why bother with init_dump_utils at all?  fmtId could be made
to initialize the ID variable for itself on first call, with only one
extra if-test, which is hardly gonna matter.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1704)
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1704)