Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNCKV-0001rH-MA for pgsql-general@arkaria.postgresql.org; Wed, 01 Feb 2023 12:35:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pNCKU-00066Y-2f for pgsql-general@arkaria.postgresql.org; Wed, 01 Feb 2023 12:35:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNCKT-00066O-Mu for pgsql-general@lists.postgresql.org; Wed, 01 Feb 2023 12:35:09 +0000 Received: from mout.gmx.net ([212.227.15.15]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNCKP-0002V7-35 for pgsql-general@postgresql.org; Wed, 01 Feb 2023 12:35:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1675254903; bh=1HzPqjTMJWDMnhaOnqrCaPW9BGJiUbirVFo8UBuU2N8=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=TKVqhGM7UGJWm5wKzGzm5zb6cE3yP9sLB/EzWcRYyvt7064EQ5dXY6rAMTloXAs+A 2DwS7/RC5vM/tJilylUvgilyxa8+5XR5KYR+jy7c1kU0TPmMA46GNKKbdf3URbTl9A jRfvTJaRbQoN+VsNFs8WlgRspP50Mz9hSIxttwdDbKLt8KQf5i5+j2Fq6CO3mJg55c AEfPjmQPoZwxAPA2tpwsA3yqSNvvJVYZk2KmhuBHGGhWZ/7tgc7xHQX8rz31dntos2 xu8UobakUiNTM/cPEeHdOho1eQ3RAHjpMS3M6V7Rao8YHJjPeHsel6oEBCWXyGRRrs 1cr77snZQLjqg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [10.8.0.19] ([185.40.248.10]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBUqL-1pUeAi0LaZ-00D282 for ; Wed, 01 Feb 2023 13:35:03 +0100 Subject: Re: moving a database to a new 15.1 server To: Postgres General References: <20230201122434.GB9@sh4-5.1blu.de> From: Thomas Kellerer Message-ID: Date: Wed, 1 Feb 2023 13:35:00 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: <20230201122434.GB9@sh4-5.1blu.de> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:1ReOAX+704gQaXQidQ4pVfW8EF/d3pjcTeWxq1jrn0giY4E6z3E Z/Rssirr3PgcnI/KEC9v4XgyuGetfhCLnhxQyBaVmPiLHk/EH3+dUU2wVVe7kURQQSRCWi6 DB7CzFjiTAblthi35sJghuJGoV2QztIvv8ShypvF/JYC+Klbnpa5U5S06XHvnFMhSWdU5sm kjER8X2EB831tha7xn2Gg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:oMbhRQ5ZdGA=;5+NTjNnbDU+7i0o0NkD4suqGhZr w9K0sTXsWfsagZuZzNOgAU6EK4IzbtPsgToqi5JNyHto2hozBR9lfN0H8+miEHX7qIVMX7x8l DNA5Ue5Y6hSNWWtT+omGaVbQ+TBSZT8ulnCvaAxDG04Yr/pbNuwd6dhmXtVSw2Y+QX9vHKVfU Pu3MX7bFyKthGSqfiVgH7MVcBqWAkBwAD1LoT9caW8aeMJWpcM0ZAY+tZ1EaGYxScBi/LNOVo zY7gPiMYDM91hF7J9+3xWyRuHEdH+JnZ81pqx6WTNGaD1qHWMEmeMPhSOydX1fJlITrMEbOHI yrBRIt5AoKhdw+pi7s15wcoz44AIW4/jHeaMUpeauH3c+xFgzvKm64Oqaa+E21POwCDXXvLoV YSnI1TieF3b0JC1LL3RmsXyZ4VPOj1w7a96Ydk8+cN7gYxA3hvNoAXX3HgHwNNTRN/Yu+zhTL bzvoPMvGlFUrbsw/yuKi9BYbnbwQmgRvfyq8Udy3dOMHfnYFEiUcHK4q1JrcIuEVpL1Plab3x tN+vs+jmRCg45UekTtmxl3cmypy+bDourxGn2uJiqxwuD1TLsLk/eNLYe3T+nte4RQeoN8P0a Gi7Db35kNqdfOnajdNy1UdjEAbN1Y75DnhVJMNVBWLQDWp2I+EzcVYMz30V6HCqs50zvitmR6 vsvvT7c7r7FucJdM8OSKJZhe0REYwCS8gxsOChNihn2l0vh/2zOLVsYDFkzx10Peyigg8nR5A BD8IrmGAzyAyW2cbwH6zSldR43HJZ0BrpfgIlq8TP4aVb/sec1r848AtIDT44F3rZR6Zdh0FI 5xOR51oyf631Lea1kqZ9wahAemEGHfeo0lqDRLilmuCDz8x773avrCqIntQQR4Wma6rPxpqb+ ctpIT0hJgRrRqgFOK9LLTCEoq0Dihgg8YZ5MUp+lfV2y60DDmMmERykwrOi6uUZQOZujipr7p sm1B3bMZYQuAiwCeCmNK4C0y9LA= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matthias Apitz schrieb am 01.02.2023 um 13:24: > $ psql -Ulbs_lbsoclc01_dev_r1_dbo_u lbs_lbsoclc01_dev_r1 > psql (15.1) > Type "help" for help. > > lbs_lbsoclc01_dev_r1=3D# > lbs_lbsoclc01_dev_r1=3D# \d > Did not find any relations. > lbs_lbsoclc01_dev_r1=3D# \d dbo.accession_index > Table "dbo.accession_index" > Column | Type | Collation | Nullable | Defau= lt > ------------------+-----------------------+-----------+----------+------= --- > iln | smallint | | not null | > > lbs_lbsoclc01_dev_r1=3D# select count(*) from counter; > ERROR: relation "counter" does not exist > LINE 1: select count(*) from counter; > ^ > lbs_lbsoclc01_dev_r1=3D# select count(*) from dbo.counter; > count > ------- > 41 > > i.e. I have to specify the schema 'dbo' to access the tables. you need to change the search_path alter user lbs_lbsoclc01_dev_r1_dbo_u set search_path =3D dbo; This was probably done on the old server. You can see the user's definitio= n if you dump the "globals" from the old server: pg_dumpall -U postgres --globals-only -f globals.sql