pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_upgrade fails to restore function
3+ messages / 2 participants
[nested] [flat]

* pg_upgrade fails to restore function
@ 2018-03-03 07:08 Roger Sunny <947035276@qq.com>
  2018-03-03 15:30 ` Re: pg_upgrade fails to restore function Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Roger Sunny @ 2018-03-03 07:08 UTC (permalink / raw)
  To: pgsql-general; +Cc: 我自己的邮箱 <947035276@qq.com>

Hi All
 
During the pg_upgrade from PostgreSQL 9.4 to PostgreSQL 10.0, the error”[archiver (db)] Error while PROCESSING TOC:” happened, The upgrade failed. OS is RHEL 6.5 , The error is as below:
<pg_upgrade log>pg_restore: connecting to database for restorepg_restore: creating pg_largeobject "pg_largeobject"pg_restore: creating pg_largeobject_metadata "pg_largeobject_metadata"pg_restore: creating SCHEMA "bo_user0300"pg_restore: creating SCHEMA "d0007359_bex2018"pg_restore: creating SCHEMA "d0007359_dan2014"  ---- omit ---------- omit ---------- omit ------ 
pg_restore: creating PROCEDURE "zchuo_ult18.kp_delkakeihyo(character)"
 
pg_restore: creating FOREIGN DATA WRAPPER "dblink_fdw"
 
pg_restore: [archiver (db)] Error while PROCESSING TOC:
 pg_restore: [archiver (db)] Error from TOC entry 470023; 2328 777028 FOREIGN DATA WRAPPER dblink_fdw postgrespg_restore: [archiver (db)] could not execute query: ERROR:  function dblink_fdw_validator(text[], oid) does not exist 
   Command was: CREATE FOREIGN DATA WRAPPER "dblink_fdw" VALIDATOR "dblink_fdw_validator";
 
-- For binary upgrade, handle extension membership the hard way
 
ALTER EXTENSION "dblink" ADD FOREIGN DATA WRAPPER "dblink_fdw";
 Please help to let me know how to address this error? 
I appreciate your quick response. Thank you!

Regards,
Roger

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_upgrade fails to restore function
  2018-03-03 07:08 pg_upgrade fails to restore function Roger Sunny <947035276@qq.com>
@ 2018-03-03 15:30 ` Tom Lane <tgl@sss.pgh.pa.us>
  2018-03-05 14:23   ` 回复: pg_upgrade fails to restore function Roger Sunny <947035276@qq.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2018-03-03 15:30 UTC (permalink / raw)
  To: Roger Sunny <947035276@qq.com>; +Cc: pgsql-general@lists.postgresql.org

"=?gb18030?B?Um9nZXIgU3Vubnk=?=" <947035276@qq.com> writes:
> During the pg_upgrade from PostgreSQL 9.4 to PostgreSQL 10.0, the error¡±[archiver (db)] Error while PROCESSING TOC:¡± happened, The upgrade failed. OS is RHEL 6.5 , The error is as below:
> <pg_upgrade log>pg_restore: connecting to database for restorepg_restore: creating pg_largeobject "pg_largeobject"pg_restore: creating pg_largeobject_metadata "pg_largeobject_metadata"pg_restore: creating SCHEMA "bo_user0300"pg_restore: creating SCHEMA "d0007359_bex2018"pg_restore: creating SCHEMA "d0007359_dan2014"  ---- omit ---------- omit ---------- omit ------ 
> pg_restore: creating PROCEDURE "zchuo_ult18.kp_delkakeihyo(character)"
 
> pg_restore: creating FOREIGN DATA WRAPPER "dblink_fdw"
 
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
>  pg_restore: [archiver (db)] Error from TOC entry 470023; 2328 777028 FOREIGN DATA WRAPPER dblink_fdw postgrespg_restore: [archiver (db)] could not execute query: ERROR:  function dblink_fdw_validator(text[], oid) does not exist 
>    Command was: CREATE FOREIGN DATA WRAPPER "dblink_fdw" VALIDATOR "dblink_fdw_validator";


Is that really the first error, or did you "omit" some?  What it
looks like is that dblink_fdw_validator had previously failed to
be created, probably because you don't have dblink.so installed
in the destination database.  Or maybe it's not the right version
of dblink.so.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* 回复: pg_upgrade fails to restore function
  2018-03-03 07:08 pg_upgrade fails to restore function Roger Sunny <947035276@qq.com>
  2018-03-03 15:30 ` Re: pg_upgrade fails to restore function Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-03-05 14:23   ` Roger Sunny <947035276@qq.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Roger Sunny @ 2018-03-05 14:23 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

HI Tom

Thank you very much for your help. This issue has been solved.

Regards,
Henry



------------------ 原始邮件 ------------------
发件人: "Tom Lane"<tgl@sss.pgh.pa.us>;
发送时间: 2018年3月3日(星期六) 晚上11:30
收件人: "Roger Sunny"<947035276@qq.com>;
抄送: "pgsql-general"<pgsql-general@lists.postgresql.org>; 
主题: Re: pg_upgrade fails to restore function



"=?gb18030?B?Um9nZXIgU3Vubnk=?=" <947035276@qq.com> writes:
> During the pg_upgrade from PostgreSQL 9.4 to PostgreSQL 10.0, the error¡±[archiver (db)] Error while PROCESSING TOC:¡± happened, The upgrade failed. OS is RHEL 6.5 , The error is as below:
> <pg_upgrade log>pg_restore: connecting to database for restorepg_restore: creating pg_largeobject "pg_largeobject"pg_restore: creating pg_largeobject_metadata "pg_largeobject_metadata"pg_restore: creating SCHEMA "bo_user0300"pg_restore: creating SCHEMA "d0007359_bex2018"pg_restore: creating SCHEMA "d0007359_dan2014"  ---- omit ---------- omit ---------- omit ------ 
> pg_restore: creating PROCEDURE "zchuo_ult18.kp_delkakeihyo(character)"
 
> pg_restore: creating FOREIGN DATA WRAPPER "dblink_fdw"
 
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
>  pg_restore: [archiver (db)] Error from TOC entry 470023; 2328 777028 FOREIGN DATA WRAPPER dblink_fdw postgrespg_restore: [archiver (db)] could not execute query: ERROR:  function dblink_fdw_validator(text[], oid) does not exist 
>    Command was: CREATE FOREIGN DATA WRAPPER "dblink_fdw" VALIDATOR "dblink_fdw_validator";


Is that really the first error, or did you "omit" some?  What it
looks like is that dblink_fdw_validator had previously failed to
be created, probably because you don't have dblink.so installed
in the destination database.  Or maybe it's not the right version
of dblink.so.

			regards, tom lane

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-03-05 14:23 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-03 07:08 pg_upgrade fails to restore function Roger Sunny <947035276@qq.com>
2018-03-03 15:30 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-03-05 14:23   ` 回复: pg_upgrade fails to restore function Roger Sunny <947035276@qq.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox