FW: statement failure - Mailing list pgsql-general

From Little, Douglas
Subject FW: statement failure
Date
Msg-id 8585BA53443004458E0BAA6134C5A7FBB6BEA71F@EGEXCMB01.oww.root.lcl
Whole thread Raw
Responses Re: FW: statement failure
List 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.Little@orbitz.com

 cid:image001.jpg@01CABEC8.D4980670  orbitz.com | ebookers.com | hotelclub.com | cheaptickets.com | ratestogo.com | asiahotels.com

 

Attachment

pgsql-general by date:

Previous
From: Zenny
Date:
Subject: Re: Security review
Next
From: Merlin Moncure
Date:
Subject: Re: FW: statement failure