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 1tBJL5-0030QB-W6 for pgsql-general@arkaria.postgresql.org; Wed, 13 Nov 2024 19:47:43 +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 1tBJL2-00GE9y-FY for pgsql-general@arkaria.postgresql.org; Wed, 13 Nov 2024 19:47:41 +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 1tBJL2-00GE9n-4Y for pgsql-general@lists.postgresql.org; Wed, 13 Nov 2024 19:47:40 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tBJKw-001iFg-6J for pgsql-general@lists.postgresql.org; Wed, 13 Nov 2024 19:47:39 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-71817c40110so4177209a34.1 for ; Wed, 13 Nov 2024 11:47:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731527253; x=1732132053; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2V4pPWX3daY93yoGvyJvkER+rUnRMe5TTzurAkHjmH0=; b=LJqMT/Mj5+/LXpzRU1pNS0gM4KNr9oDsL4Kt5v3c1yE9EBS6WulB3IhfQ6W4LwHh4x Jv8zMCetH+Uqe7L2WAkeeCfc8jCtlwuE3O3h63Fuy8sW3IgxKwsnt7xGhbbIzh7U+IJ5 WBjEyy0d6Pf/HRvN3+F0tieVFLBfW7omuXWRgQv3gbWg9Cb89GagjQscO59Lyxfp/sgC MoBZVzVOq84zHzLcld5sp4YgtSQDQhmB5XckPFBK5UUtIVvRDpjxF/cAc5oiLcTiymOi R251/HcApuJQMKWJz7oCRGpSYUiJtSb5tCth6Sc/uX7O/y0sfbmfimnEHOnVz3kpaMED SyvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731527253; x=1732132053; h=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=2V4pPWX3daY93yoGvyJvkER+rUnRMe5TTzurAkHjmH0=; b=FHRsQxoVIFPIxw4622E+pPp1u944Pw1NPeaQETscu3alIitpje8GmffYAwKeh7WwUn G3lem+oh3FjuPtPwMqOP57bFZ6JQOEj1bCaTVUlkAmncSotKqV3ZDhSm82CfsTmPlO58 K8x81tHgtNiC7WL/V+5scE9YJuXGxGWMQ98ov2BC/M4GW2HXHvDAh8/VQuoE3/p5yjWT m3/OSLrdfU+dWL6ee3QPO5iKnOHMSO+Qr/nU8aBJYDfafb7rzCRQeeFdu/4L562qnACh fz0/m4WAObHjoIyolg21nijL05A48J4Ue4d5SKJJXscyWyLZzlylU3nhX7nM3/fUId7l +DWg== X-Gm-Message-State: AOJu0Ywb+FUQsYWZk94rNYy3jMTUBfAEC749SCjOIopYKKPduuY2xf+9 dmCKQGiZ/PXEtjZhWDXTWCIk3tCpAd9IiIA+kAW5VLqyLmE4hF4TVFoS42ulsuiNLUd0mTS1CBb Qzkp6pYBoIr5Q3IwTSWK0bWiyBinX4Q== X-Google-Smtp-Source: AGHT+IG707GYpzGolBQMcZdRr/DXNwoNvSkj6rR0Q0FD+7i2sT6UvNHyP2I2eJQo0pCUQlZ0uE+NBCp3oboZNBCLrZc= X-Received: by 2002:a05:6830:610b:b0:718:156d:b22 with SMTP id 46e09a7af769-71a514590ffmr10262731a34.0.1731527253087; Wed, 13 Nov 2024 11:47:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Wed, 13 Nov 2024 14:47:22 -0500 Message-ID: Subject: Re: Help with restoring database from old version of PostgreSQL To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000d6dfd50626d09a92" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d6dfd50626d09a92 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Nov 13, 2024 at 1:50=E2=80=AFPM Catherine Frock wrote: > I'm seeking help in restoring a database that was created with PostgreSQL > 9.6. I backed it up successfully and have restored it before, but that wa= s > when PostgreSQL 9.6 was still supported. After going through the > installation of PostgreSQL 16.3, I opened up pgAdmin 4 to try to verify t= he > PostgreSQL/PostGIS installation, but when I try to connect to the > PostgreSQL 16.3 server, I get an internal server error message: 'Server= Manager' > object has no attribute 'user_info'. > > In pgAdmin4, I am able to connect to the PostgreSQL 9.6 server, but when = I > try to verify the install by querying: CREATE EXTENSION postgis; > SELECT postgis_version(); > I get the following error message: ERROR: could not open extension > control file "C:/Program Files/PostgreSQL/9.6/share/extension/postgis.con= trol": > No such file or directory SQL state: 58P01 > > How can I restore my database to have access to it again? > Do you still have the backup file somewhere? If so, then modern versions of PG *will* read the 9.6 backup file. You "just" need to have PostGIS somewhere on disk that PG 16.3 knows about. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000d6dfd50626d09a92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Nov 13, 2024 at 1:50=E2=80=AFPM C= atherine Frock <frock@uwalumni.com= > wrote:
I'm seeking help in restoring a database that was cr= eated with=C2=A0PostgreSQL 9.6. I backed it up successfully and have restored it be= fore, but that was when PostgreSQL 9.6 was still supported.=C2=A0After going through the installation of PostgreSQL= 16.3, I opened up pgAdmin 4 to try to verify the PostgreSQL/PostGIS<= /span>=C2=A0installation, but when I try to connect to the PostgreSQL 16.3 = server, I get an internal server error message:=C2=A0=C2=A0=C2=A0'= ;ServerManager' object has no attribute 'user_info'.

=
In pgAd= min4, I am able to connect to the PostgreSQL 9.6 server, but when I try to = verify the install by querying:=C2=A0CREATE EXTENSION=C2=A0postgis;
SELECT postgis_version();
I get the following error message:= =C2=A0=C2=A0ERROR: could not open extension control file "C:/Program F= iles/PostgreSQL/9.6/share/extension/postgis.control": No = such file or directory SQL state: 58P01

How can I restore my databas= e to have access to it again?

Do you still have the backup file somewhere?=C2=A0 If so, t= hen modern versions of PG will=C2=A0read the 9.6 backup file.=C2=A0 = You "just" need to have PostGIS somewhere on disk that PG 16.3 kn= ows about.

--
= Death to <Redacted>, and butter sauce.
Don't boil me, I'm= still alive.
<Redacted> lobster!
--000000000000d6dfd50626d09a92--