Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 291A42E0086 for ; Tue, 20 May 2008 15:16:43 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 67709-01 for ; Tue, 20 May 2008 15:16:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound-mail-119.bluehost.com (outbound-mail-119.bluehost.com [69.89.22.19]) by developer.postgresql.org (Postfix) with SMTP id B7C612E0085 for ; Tue, 20 May 2008 15:16:38 -0300 (ADT) Received: (qmail 5493 invoked by uid 0); 20 May 2008 18:16:36 -0000 Received: from unknown (HELO box54.bluehost.com) (69.89.20.54) by outboundproxy3.bluehost.com with SMTP; 20 May 2008 18:16:36 -0000 Received: from ip65-46-48-50.z48-46-65.customer.algx.net ([65.46.48.50] helo=[10.20.44.130]) by box54.bluehost.com with esmtpa (Exim 4.68) (envelope-from ) id 1JyWO4-0001TX-DY; Tue, 20 May 2008 12:16:36 -0600 Cc: pgsql-admin@postgresql.org Message-Id: <2FAACE70-C77D-4789-A02E-7CA34CF0DF16@kevinkempterllc.com> From: kevin kempter To: kevin kempter In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: insert a -1 into a bigint ? Date: Tue, 20 May 2008 12:16:36 -0600 References: X-Mailer: Apple Mail (2.919.2) X-Identified-User: {840:box54.bluehost.com:kevinkem:kevinkempterllc.com} {sentby:smtp auth 65.46.48.50 authed with kevin+kevinkempterllc.com} DomainKey-Status: no signature X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/174 X-Sequence-Number: 29258 I forgot to mention - I'm running version 8.3.1 On May 20, 2008, at 12:14 PM, kevin kempter wrote: > Hi All: > > > I have this table: > > # \d seg_id_tmp7 > Table "public.seg_id_tmp7" > Column | Type | Modifiers > -----------------+-----------------------------+----------- > customer_srcid | bigint | > show_srcid | bigint | > show_name | character varying | > season_srcid | bigint | > season_name | character varying | > episode_srcid | bigint | > episode_name | character varying | > segment_type_id | bigint | > segment_type | character varying | > segment_srcid | bigint | > segment_name | character varying | > create_dt | timestamp without time zone | > > > > I want to insert some data along with a -1 for two of the bigint > columns. like this: > > insert into seg_id_tmp7 > ( customer_srcid, > show_srcid, > show_name, > season_srcid, > season_name, > episode_srcid, > episode_name, > segment_type_id, > segment_type, > segment_srcid, > segment_name, > create_dt ) > select > t8.customer_srcid, > t8.show_srcid, > t8.show_name, > t8.season_srcid, > t8.season_name, > t8.episode_srcid, > t8.episode_name > -1::bigint , > 'none', > -1::bigint , > 'none', > (select start_dt from load_start_date) > from > seg_id_tmp8 t8 > ; > > > > I've also tried without the ::bigint cast on the above query. > > > I always get this error: > > sql:load_sl_cd_segment_dim.sql:237: ERROR: operator does not exist: > character varying - bigint > LINE 22: -1::bigint , > ^ > HINT: No operator matches the given name and argument type(s). You > might need to add explicit type casts. > > > > > > Thanks in advance for any help, advice, etc.. > > > /Kevin > > > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin