Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 21F349FBF9B for ; Fri, 16 Mar 2007 14:36:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 31169-08 for ; Fri, 16 Mar 2007 14:36:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from gw.sandvine.com (unknown [199.243.201.138]) by postgresql.org (Postfix) with ESMTP id DB15B9FBF99 for ; Fri, 16 Mar 2007 14:36:14 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Re: Problem migrating from 8.0.3 to 8.2.3 Date: Fri, 16 Mar 2007 13:36:13 -0400 Message-ID: In-Reply-To: <7901.1174062531@sss.pgh.pa.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Problem migrating from 8.0.3 to 8.2.3 Thread-Index: Acdn6DCDvM3z3pQwQseOOPAt6PEEPAACB4MA References: <7901.1174062531@sss.pgh.pa.us> From: "Anton Pikhteryev" To: "Tom Lane" Cc: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/109 X-Sequence-Number: 24933 There is that part and doesn't have any errors: CREATE TABLE clap_file_info ( fileid integer DEFAULT nextval('public.clap_file_info_fileid_seq'::text) NOT NULL, filename text NOT NULL, created timestamp with time zone DEFAULT ('now'::text)::timestamp(6) with time zone NOT NULL, "owner" valid_user NOT NULL ); CREATE TABLE ALTER TABLE public.clap_file_info OWNER TO labadmin; ... CREATE TABLE event_occurrence ( event_occurrence_id integer DEFAULT nextval('public.event_occurrence_event_occurrence_id_seq'::text) NOT NULL, event_id serial_ref NOT NULL, event_timestamp timestamp with time zone DEFAULT ('now'::text)::timestamp(6) with time zone NOT NULL, testrun_id serial_ref, user_id valid_user NOT NULL ); CREATE TABLE ALTER TABLE public.event_occurrence OWNER TO labadmin; ALTER TABLE CREATE SEQUENCE event_occurrence_event_occurrence_id_seq INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1; CREATE SEQUENCE ALTER TABLE public.event_occurrence_event_occurrence_id_seq OWNER TO labadmin; ALTER TABLE ALTER SEQUENCE event_occurrence_event_occurrence_id_seq OWNED BY event_occurrence.event_occurrence_id; ALTER SEQUENCE Absolutely no errors when it is created. BTW: labdb=3D# \dT valid_user List of data types Schema | Name | Description --------+------------+---------------------------- public | valid_user | valid PostgreSQL user name (1 row) labdb=3D# \dT+ valid_user List of data types Schema | Name | Internal name | Size | Description --------+------------+---------------+------+--------------------------- - public | valid_user | valid_user | 64 | valid PostgreSQL user name (1 row) Did I miss anything?=20 Anton Pikhteryev Network Administrator, Tools Group Sandvine Incorporated Phone: 519.880.2400 ext. 2923 http://www.sandvine.com =20 =20 > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 > Sent: Friday, March 16, 2007 12:29 PM > To: Anton Pikhteryev > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Problem migrating from 8.0.3 to 8.2.3=20 >=20 > "Anton Pikhteryev" writes: > > COPY clap_file_info (fileid, filename, created, "owner") FROM stdin; > > ERROR: type "char" is not a domain > > CONTEXT: COPY clap_file_info, line 1, column owner: "mfgtest" >=20 > You have removed the parts of the dump that show the creation=20 > of this table. Please try again. >=20 > > I am thinking that it has something to do with usesysid not being=20 > > consistent for valid_user type from 8.0.3 to 8.2.3. >=20 > Highly unlikely. The error message must be coming from=20 > domain_in, but why is that getting invoked? I want to see=20 > the declaration of that table and any data types or=20 > constraints it's using. >=20 > regards, tom lane >=20