summaryrefslogtreecommitdiff
path: root/contrib/pg_upgrade/info.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2010-05-13 22:51:00 +0000
committerBruce Momjian <bruce@momjian.us>2010-05-13 22:51:00 +0000
commit36d3afd2d42da4c81c22b8cad3e8312368b9823e (patch)
tree59b1e975b58d49fcf65cdb2911f22fc2b741a07d /contrib/pg_upgrade/info.c
parent382ff21203ae1c13c2c93a483b098608f35a7251 (diff)
Remove all mentions of EnterpriseDB Advanced Server from pg_upgrade;
EDB must maintain their own patch set for this.
Diffstat (limited to 'contrib/pg_upgrade/info.c')
-rw-r--r--contrib/pg_upgrade/info.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/contrib/pg_upgrade/info.c b/contrib/pg_upgrade/info.c
index 7280dcf3f01..2b0bba6170b 100644
--- a/contrib/pg_upgrade/info.c
+++ b/contrib/pg_upgrade/info.c
@@ -291,8 +291,6 @@ get_rel_infos(migratorContext *ctx, const DbInfo *dbinfo,
RelInfoArr *relarr, Cluster whichCluster)
{
PGconn *conn = connectToServer(ctx, dbinfo->db_name, whichCluster);
- bool is_edb_as = (whichCluster == CLUSTER_OLD) ?
- ctx->old.is_edb_as : ctx->new.is_edb_as;
PGresult *res;
RelInfo *relinfos;
int ntups;
@@ -341,38 +339,7 @@ get_rel_infos(migratorContext *ctx, const DbInfo *dbinfo,
FirstNormalObjectId,
/* see the comment at the top of v8_3_create_sequence_script() */
(GET_MAJOR_VERSION(ctx->old.major_version) <= 803) ?
- "" : " OR relkind = 'S'",
-
- /*
- * EDB AS installs pgagent by default via initdb. We have to ignore it,
- * and not migrate any old table contents.
- */
- (is_edb_as && strcmp(dbinfo->db_name, "edb") == 0) ?
- " AND "
- " n.nspname != 'pgagent' AND "
- /* skip pgagent TOAST tables */
- " c.oid NOT IN "
- " ( "
- " SELECT c2.reltoastrelid "
- " FROM pg_catalog.pg_class c2 JOIN "
- " pg_catalog.pg_namespace n2 "
- " ON c2.relnamespace = n2.oid "
- " WHERE n2.nspname = 'pgagent' AND "
- " c2.reltoastrelid != 0 "
- " ) AND "
- /* skip pgagent TOAST table indexes */
- " c.oid NOT IN "
- " ( "
- " SELECT c3.reltoastidxid "
- " FROM pg_catalog.pg_class c2 JOIN "
- " pg_catalog.pg_namespace n2 "
- " ON c2.relnamespace = n2.oid JOIN "
- " pg_catalog.pg_class c3 "
- " ON c2.reltoastrelid = c3.oid "
- " WHERE n2.nspname = 'pgagent' AND "
- " c2.reltoastrelid != 0 AND "
- " c3.reltoastidxid != 0 "
- " ) " : "");
+ "" : " OR relkind = 'S'");
res = executeQueryOrDie(ctx, conn, query);