Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6B88E1336B42 for ; Mon, 3 Jan 2011 10:16:12 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 29447-04 for ; Mon, 3 Jan 2011 14:16:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 6C37B1336971 for ; Mon, 3 Jan 2011 10:16:04 -0400 (AST) Received: (qmail 2638 invoked by uid 0); 3 Jan 2011 14:16:03 -0000 Received: from 192.124.237.1 by www154.gmx.net with HTTP; Mon, 03 Jan 2011 15:16:02 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Mon, 03 Jan 2011 15:16:02 +0100 From: "Jan-Peter Seifert" Message-ID: <20110103141602.204670@gmx.net> MIME-Version: 1.0 Subject: Obscure problem due to high system OID or privileges? To: pgsql-admin@postgresql.org X-Authenticated: #955937 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1++7sUC6Vm+jv0ZfiBJxPdmJ2x1Ly12SAvrIeYjo2 j3RiZNnbLfDgiD9AdOC5aFODhgHS9uXE/nrg== Content-Transfer-Encoding: 8bit X-GMX-UID: RL5JAMgubHIhQFOuNzQ08dQiJihyahA9 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.889 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201101/4 X-Sequence-Number: 36444 Hello, we have a strange problem with a server instance: PostgreSQL 8.2.11 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) It's one of several clones (server/system) where one of our applications cannot work with a specific database restored from a dump of a database on a 8.2.18 server and created with the server's binaries. Recreating the database with template0 again and doing a new restore didn't help. There are no error messages during backup/restore. The same database/app works fine on the other clones. The same app works fine after we put the database on a different instance. So it seems to be a specific problem with this server instance. Other databases on this instance seem to work fine though. During 'start up' the application does a couple of SELECTs on pg_catalog: . . . SELECT COUNT(*) FROM pg_attribute JOIN pg_type ON pg_attribute.atttypid=pg_type.oid LEFT OUTER JOIN pg_attrdef ON ( pg_attribute.attnum=pg_attrdef.adnum AND pg_attribute.attrelid=pg_attrdef.adrelid ) WHERE pg_attribute.attrelid = 2147483647 AND pg_attribute.attnum >= 0 AND pg_attribute.attisdropped = 'false' . . . It seems that the application doesn't find some rows. There are no error messages in the server's log though. The only two obvious differences we found are: 1. The superuser 'nutzer' used for the session had been given two roles ('nutzerrolle' and 'nutzeradmin') in the problematic server instance: CREATE ROLE nutzerrolle NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE; CREATE ROLE nutzeradmin SUPERUSER INHERIT CREATEDB CREATEROLE; UPDATE pg_authid SET rolcatupdate=true WHERE OID=9413195::oid; CREATE ROLE nutzer LOGIN ENCRYPTED PASSWORD 'xxxx' SUPERUSER INHERIT CREATEDB CREATEROLE; UPDATE pg_authid SET rolcatupdate=true WHERE OID=2147483647::oid; Removing these group memberships didn't help though. Recreating the user didn't help neither. 2. Very high system OIDs - e.g. pg_attribute.attrelid max 3318384368 where another server had max 94363332. The application connects via psqlODBC (8.4.200). Is this maybe a known problem? Could you tell me, please? Thank you very much, Peter -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone