mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Added long-standing transaction when restoring BLOBS (uses commit every BLOB_BATCH_SIZE)
Prevent dumping of languages from template1.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.176 2000/10/24 13:24:30 pjw Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.177 2000/10/31 14:20:30 pjw Exp $
|
||||
*
|
||||
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
||||
*
|
||||
@@ -2872,6 +2872,7 @@ dumpProcLangs(Archive *fout, FuncInfo *finfo, int numFuncs,
|
||||
int i_lanpltrusted;
|
||||
int i_lanplcallfoid;
|
||||
int i_lancompiler;
|
||||
Oid lanoid;
|
||||
char *lanname;
|
||||
char *lancompiler;
|
||||
const char *lanplcallfoid;
|
||||
@@ -2898,7 +2899,13 @@ dumpProcLangs(Archive *fout, FuncInfo *finfo, int numFuncs,
|
||||
|
||||
for (i = 0; i < ntups; i++)
|
||||
{
|
||||
lanoid = atoi(PQgetvalue(res, i, i_oid));
|
||||
if (lanoid <= g_last_builtin_oid)
|
||||
continue;
|
||||
|
||||
lanplcallfoid = PQgetvalue(res, i, i_lanplcallfoid);
|
||||
|
||||
|
||||
for (fidx = 0; fidx < numFuncs; fidx++)
|
||||
{
|
||||
if (!strcmp(finfo[fidx].oid, lanplcallfoid))
|
||||
|
Reference in New Issue
Block a user