Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rv7HZ-009n65-PI for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Apr 2024 03:08:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rv7HY-008zHV-RM for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Apr 2024 03:08:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rv7HY-008zHL-Hu for pgsql-hackers@lists.postgresql.org; Fri, 12 Apr 2024 03:08:52 +0000 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rv7HW-002RSL-6d for pgsql-hackers@lists.postgresql.org; Fri, 12 Apr 2024 03:08:51 +0000 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5a49261093cso271332eaf.3 for ; Thu, 11 Apr 2024 20:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712891329; x=1713496129; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g0zVsAfGksVwG7omZzlV82Sd68pd806jNyoFtbk1XC0=; b=eVwaDAmzqRsZtz96MkTTcqhh80Ml7ONpYXTzz4CAdR7vHlCRZR09OOQid5owmZKFIc sNoYFRpFn0q1+mvVx3M2c+eCrDUlDGEacwbPkadRFUYR6fgUv3/KWLebQIgKCyuI0wnh pFwRgzD6AK5aBIbDodtV4331+iGrDXoAoJhziERk99xbkl7hfFMhTiucSKNlv93EYARg nxp9XFza4s2HBeKHkWCuCTPkJe+NHZhaUhBOwJlaNTRsm0wd1CdeIG/xMDDW7qPeUVIn lCw6foZz6LXSyIk85Ssn7+RPKZqR7j15CO0+Wh78gt5ndMV3h9zy5/Fv1Ce2ynQUQH8E LxLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712891329; x=1713496129; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g0zVsAfGksVwG7omZzlV82Sd68pd806jNyoFtbk1XC0=; b=GyYFJ3st5mYkkyAYDx07ui67FjRQ+nPGlV1QTpeqw9G+yhiIth3au/tq857Q47oO62 ++XYmrCJirv66Ni2iKHyibhwgPT6BqPcX4Ma/QH9OmlpGPw7jDIu480oa/yKc5jP1UV/ kj2FdS9x1GIPSD+LmIQIOiJblYgmJ1PHBXaCvTBns8bhPtiUd6Cx9+JnkKejgsPCfY9Z 519//cO07yXqTFCcjckCLJZ4IZtLc13lCIGB7vYiOCiV/OcKMSNzLS/px68S2xN2xwGM 36ny4dk6sgOjFh8MtZHNCmv6neJ7Ltx3maKBbNaJ9+ZVHnQALCr1OLdKnO1zyhyhmX7n 5ktg== X-Gm-Message-State: AOJu0YxjqKmW6sc6zTdhvsbFZl2PKl7RZNu0Tk6RbcrzTpLFmLsOshGV paCUY9MXcFxG+ueBwwtUPllquWOT/zCxwkqjpOY8nTxnFXQtWb6c2k/T2DLui+fJRakk1sx7ivo G9ae8eqwz3netvxVifFitre39bw/s21a6Ovw= X-Google-Smtp-Source: AGHT+IHgL1tv19KrBa8g4rG4XR2VB4SEkBzkXenScHPzwmkK4NeWXdPo3pTLS+37UZ0Z8YyRPQAwvNWNDd87pIB+Q7Q= X-Received: by 2002:a05:6870:f21a:b0:229:f035:f5b2 with SMTP id t26-20020a056870f21a00b00229f035f5b2mr1784282oao.17.1712891329406; Thu, 11 Apr 2024 20:08:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 12 Apr 2024 08:38:38 +0530 Message-ID: Subject: Re: pg_upgrde failed : logical replication : alter_subscription_add_log To: Perumal Raj Cc: pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Apr 12, 2024 at 6:18=E2=80=AFAM Perumal Raj w= rote: > > I am trying to upgrade PostgreSQL (RHEL 7) from version 13.7 to 15.6 usin= g pglogical. > My Standby(destination) machine has following rpms, > > postgresql13-pglogical-3.7.16-1.el7.x86_64 > pglogical_15-2.4.3-1.rhel7.x86_64 > > And Primary(Source) has , > > postgresql13-pglogical-3.7.16-1.el7.x86_64 > > pg_upgrade check mode went fine , but it failed while running real mode. > > pg_restore: while PROCESSING TOC: > pg_restore: from TOC entry 13027; 1255 3375648004 FUNCTION alter_subscrip= tion_add_log("text", "text", boolean, "regclass", "text"[], "text"[]) postg= res > pg_restore: error: could not execute query: ERROR: could not find functi= on "pglogical_alter_subscription_add_log" in file "/usr/pgsql-15/lib/pglogi= cal.so" > Command was: CREATE FUNCTION "pglogical"."alter_subscription_add_log"("su= b_name" "text", "log_name" "text", "log_to_file" boolean DEFAULT true, "log= _to_table" "regclass" DEFAULT NULL::"regclass", "conflict_type" "text"[] DE= FAULT NULL::"text"[], "conflict_resolution" "text"[] DEFAULT NULL::"text"[]= ) RETURNS boolean > LANGUAGE "c" > AS '$libdir/pglogical', 'pglogical_alter_subscription_add_log'; > > -- For binary upgrade, handle extension membership the hard way > ALTER EXTENSION "pglogical" ADD FUNCTION "pglogical"."alter_subscription_= add_log"("sub_name" "text", "log_name" "text", "log_to_file" boolean, "log_= to_table" "regclass", "conflict_type" "text"[], "conflict_resolution" "text= "[]); > > Am I missing any packages? > We don't maintain pglogical so difficult to answer but looking at the error (ERROR: could not find function "pglogical_alter_subscription_add_log" in file "/usr/pgsql-15/lib/pglogical.so"), it seems that the required function is not present in pglogical.so. It is possible that the arguments would have changed in newer version of pglogical or something like that. You need to check with the maintainers of pglogical. --=20 With Regards, Amit Kapila.