Re: pg_restore issue.. - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_restore issue..
Date
Msg-id 22154.1033749888@sss.pgh.pa.us
Whole thread Raw
In response to pg_restore issue..  (Chris Bowlby <excalibur@hub.org>)
List pgsql-general
Chris Bowlby <excalibur@hub.org> writes:
>  I've noticed a glitch (or alteast it looks like a glitch) with pg_restore
> when trying to loadup a tarred pgdump file. There are a few functions that
> have been defined that are recursive, the function call's itself until a
> case point is reached which will cause it to call the "non-recursive"
> function and exit out normally.

This is a SQL function I suppose?  Before 7.3 we didn't really support
recursive SQL functions, because the function body was checked before
the function was defined.  You'll have to do some hack like creating
the function with a dummy nonrecursive body and then CREATE OR REPLACE
to insert the desired body.  (I suppose you must have done something
along that line to make the function originally.)

            regards, tom lane

pgsql-general by date:

Previous
From: Roland Roberts
Date:
Subject: Re: Fast Deletion For Large Tables
Next
From: "David Blood"
Date:
Subject: Pinning a table into memory