pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anton Pikhteryev <apikhteryev@sandvine.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem migrating from 8.0.3 to 8.2.3
Date: Fri, 16 Mar 2007 13:36:13 -0400
Message-ID: <F489AB573A749146B33461ECE080913A0108BEF5@EXCHANGE-1.sandvine.com> (raw)
In-Reply-To: <7901.1174062531@sss.pgh.pa.us>
References: <F489AB573A749146B33461ECE080913A0108BEF4@EXCHANGE-1.sandvine.com>
	<7901.1174062531@sss.pgh.pa.us>

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=# \dT valid_user
                List of data types
 Schema |    Name    |        Description
--------+------------+----------------------------
 public | valid_user | valid PostgreSQL user name
(1 row)

labdb=# \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? 

Anton Pikhteryev
Network Administrator, Tools Group
Sandvine Incorporated
Phone: 519.880.2400 ext. 2923
http://www.sandvine.com
 
 

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
> 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 
> 
> "Anton Pikhteryev" <apikhteryev@sandvine.com> 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"
> 
> You have removed the parts of the dump that show the creation 
> of this table.  Please try again.
> 
> > I am thinking that it has something to do with usesysid not being 
> > consistent for valid_user type from 8.0.3 to 8.2.3.
> 
> Highly unlikely.  The error message must be coming from 
> domain_in, but why is that getting invoked?  I want to see 
> the declaration of that table and any data types or 
> constraints it's using.
> 
> 			regards, tom lane
> 



view thread (8+ messages)  latest in thread

Message-ID: <F489AB573A749146B33461ECE080913A0108BEF5@EXCHANGE-1.sandvine.com>
Permalink:  ../F489AB573A749146B33461ECE080913A0108BEF5@EXCHANGE-1.sandvine.com/
Also on:    postgresql.org/message-id/F489AB573A749146B33461ECE080913A0108BEF5@EXCHANGE-1.sandvine.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: apikhteryev@sandvine.com, tgl@sss.pgh.pa.us
  Subject: Re: Problem migrating from 8.0.3 to 8.2.3
  In-Reply-To: <F489AB573A749146B33461ECE080913A0108BEF5@EXCHANGE-1.sandvine.com>
  References: <F489AB573A749146B33461ECE080913A0108BEF4@EXCHANGE-1.sandvine.com> <7901.1174062531@sss.pgh.pa.us> <F489AB573A749146B33461ECE080913A0108BEF5@EXCHANGE-1.sandvine.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox