FW: statement failure

From: "Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com>
To: "PostgreSQL General (pgsql-general(at)postgresql(dot)org)" <pgsql-general(at)postgresql(dot)org>
Subject: FW: statement failure
Date: 2013-03-06 15:38:23
Message-ID: 8585BA53443004458E0BAA6134C5A7FBB6BEA71F@EGEXCMB01.oww.root.lcl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a dev and prod Greenplum system (4.2.2.4) that is based on PG 8.2.15
I have a function that's been working fine on dev, but when implemented in prod had a syntax error.
I was easily able to fix by casting, but I can't see why the message didn't show up on our dev machine.

I've reviewed the guk settings and can't find anything relevant.

Any ideas what might be different and causing problems.
Thanks in advance

ERROR: column "logtransaction" is of type integer but expression is of type text

LINE 1: ...abase,loguser,loghost,logsession, logsessiontime, logtransac...

^

HINT: You will need to rewrite or cast the expression.

QUERY: insert into dba_work.table_usage_log(logtime, logdatabase,loguser,loghost,logsession, logsessiontime, logtransaction, logseverity, logstate, logdebug) select logtime, logdatabase,loguser,loghost,logsession, logsessiontime, logtransaction, logseverity, logstate, logdebug from dba_work.gp_log_master_ext where logmessage ilike '%select%' and logmessage ilike '%from%' and logmessage not ILIKE 'execute%' and logmessage not ILIKE '%gp_%' and logmessage not ILIKE '%pg_%' and loguser not in ('gpadmin','gp_php_read','gpmon','ods','dlittle') and date_trunc('day',logtime) = $1

CONTEXT: PL/pgSQL function "table_usage_analyzer" line 31 at SQL statement

Doug Little

Sr. Data Warehouse Architect | Business Intelligence Architecture | Orbitz Worldwide
500 W. Madison, Suite 1000 Chicago IL 60661| Office 312.260.2588 | Fax 312.894.5164 | Cell 847-997-5741
Douglas(dot)Little(at)orbitz(dot)com<mailto:Douglas(dot)Little(at)orbitz(dot)com>
[cid:image001(dot)jpg(at)01CE1985(dot)EBEAC720] orbitz.com<http://www.orbitz.com/> | ebookers.com<http://www.ebookers.com/> | hotelclub.com<http://www.hotelclub.com/> | cheaptickets.com<http://www.cheaptickets.com/> | ratestogo.com<http://www.ratestogo.com/> | asiahotels.com<http://www.asiahotels.com/>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-03-06 15:47:16 Re: FW: statement failure
Previous Message Zenny 2013-03-06 15:29:31 Re: Security review