X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9B84DD94E8 for ; Fri, 14 Oct 2005 12:53:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27119-02 for ; Fri, 14 Oct 2005 15:53:38 +0000 (GMT) Received: from ll.mit.edu (LLMAIL.LL.MIT.EDU [129.55.12.40]) by svr1.postgresql.org (Postfix) with ESMTP id A30E7D893A for ; Fri, 14 Oct 2005 12:53:38 -0300 (ADT) Received: (from smtp@localhost) by ll.mit.edu (8.12.10/8.8.8) id j9EFraV8009747 for ; Fri, 14 Oct 2005 11:53:36 -0400 (EDT) Received: from UNKNOWN( ), claiming to be "sty.llan" via SMTP by llmail, id smtpdAAA4VaiCr; Fri Oct 14 11:53:13 2005 Date: Fri, 14 Oct 2005 11:53:13 -0400 From: george young To: pgsql-sql@postgresql.org Subject: owner of data type "areas" appears to be invalid ? Message-Id: <20051014115313.7a05858a.gry@ll.mit.edu> Reply-To: gry@ll.mit.edu Organization: MIT Lincoln Laboratory X-Mailer: Sylpheed version 2.0.1 (GTK+ 2.8.0; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 required=5 tests=[AWL=0.009] X-Spam-Level: X-Archive-Number: 200510/166 X-Sequence-Number: 23019 [PostgreSQL 7.4RC2, x86 linux] Several tables are giving the errors like: pg_dump: WARNING: owner of data type "areas" appears to be invalid from pg_dump. This is my production database, (50 users, 18 hours/day, 21MB compressed dump). The output of "pg_dump -t areas" starts with: REVOKE ALL ON TABLE areas FROM PUBLIC; REVOKE ALL ON TABLE areas FROM geoyou; SET SESSION AUTHORIZATION "101"; GRANT ALL ON TABLE areas TO "101" WITH GRANT OPTION; RESET SESSION AUTHORIZATION; SET SESSION AUTHORIZATION "101"; GRANT ALL ON TABLE areas TO PUBLIC; RESET SESSION AUTHORIZATION; GRANT ALL ON TABLE areas TO PUBLIC; But "101" is the numerical group id of the "operator" group! (see dump from pg_group below). The table owner is "geoyou" as seen from the pg_class select below. User "geoyou" is in pg_user with usesysid=501. There is no row in pg_user with usesysid=101, and there is none with usename "101". How can I fix this? I must be able to get clean dumps that can be reloaded in case of a crash. -- George Young pig5=> select * from pg_class where relname='areas'; relname | relnamespace | reltype | relowner | relam | relfilenode | relpages | reltuples | reltoastrelid | reltoastidxid | relhasindex | relisshared | relkind | relnatts | relchecks | reltriggers | relukeys | relfkeys | relrefs | relhasoids | relhaspkey | relhasrules | relhassubclass | relacl ---------+--------------+----------+----------+-------+-------------+----------+-----------+---------------+---------------+-------------+-------------+---------+----------+-----------+-------------+----------+----------+---------+------------+------------+-------------+----------------+--------------------------------------- areas | 2200 | 14745246 | 501 | 0 | 14745245 | 1 | 41 | 14745247 | 0 | f | f | r | 2 | 0 | 0 | 0 | 0 | 0 | t | f | f | f | {101=a*r*w*d*R*x*t*/101,=arwdRxt/101} pig5=> select * from pg_user where usesysid=501; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig ---------+----------+-------------+----------+-----------+----------+----------+----------- geoyou | 501 | f | f | f | ******** | | select * from pg_group where grosysid=101; groname | grosysid | grolist ----------+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- operator | 101 | {602,616,509,525,614,514,617,539,517,558,581,567,506,609,94,511,573,17115,327,17422,512,537,626,503,519,583,547,570,584,78,10980,518,557,564,528,546,592,599,613,510,513,536,554,500,530,594,608,524,17114,533,17116,17289,17290,17292,17294,17345,17347,17421,17423,17425,214,17430,17427,17428,574,11,391,17431,17667,17703,8309,17769,17842,17773,17874,17877,13283,12758,17966,18888,17902,18099,18117,18129,18170,18173,18163,32766,18195,18202,18208,17786,17704,18375,18322,18399,18410,17904,18438,18424,28424,18437,102137,9877,502,32768,18553,13065,10681,8245,17049,15885,15886,8977,18706,18717} select * from pg_tables where tablename='areas'; schemaname | tablename | tableowner | hasindexes | hasrules | hastriggers ------------+-----------+------------+------------+----------+------------- public | areas | geoyou | f | f | f -- "Are the gods not just?" "Oh no, child. What would become of us if they were?" (CSL)