Re: Moving a database between servers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael (dot)" <phifli(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving a database between servers
Date: 2003-12-11 14:32:29
Message-ID: 13066.1071153149@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Michael ." <phifli(at)yahoo(dot)com> writes:
> [ SQL function that references a TEMP table ]

> How do I get these functions to import correctly if it
> fails due to this "current_transaction" table not
> being found?

I don't think there is any good solution in 7.3, because it will insist
on trying to validate the function body. A hack workaround is to create
the "current_transaction" table (as a plain, not TEMP, table), then
import your dump, then drop the table.

7.4 has a better solution (you can turn off function body checking in
CREATE FUNCTION), and 7.4's pg_dump will use it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nagib Abi Fadel 2003-12-11 14:36:56 Should we consider empty fields as NULL values when dealing with string columns ?
Previous Message Chris Travers 2003-12-11 14:15:57 Re: Should we consider empty fields as NULL values when