Postgres SQL Question. - Limitation exceeded?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Postgres SQL Question. - Limitation exceeded?

Postby linuxdad » May 2nd, '15, 23:04

OK, I have been running Postgres 8.1.18 from Mandriva Linux Corporate Server release 2006.0

So it's definitely time for an upgrade, and I have Installed Mageia 4.0 with Postgresql 9.3.

This issue is that when I attempt to run my Perl Scripts on the 9.3 server, I get a strange error:

Code: Select all
DBD::Pg::st execute failed: ERROR:  syntax error at or near ","
LINE 1: ...,action,thresh,discard,evirus,attach,enavirus,over,ssm,visiz...
                                                             ^ at ./Test-PgSQL.pl line 91.
DBD::Pg::st fetchrow_array failed: no statement executing at ./Test-PgSQL.pl line 92.


The Source of the Code is:

Code: Select all
$sth = $dbh->prepare("select filter,action,thresh,discard,evirus,attach,enavirus,over,ssm,visize,ssma,redhtml,qesh,qesb,overact,minscore,scanzip,greylist,use_from from configuration where customerid=1");


If I shorten the above to everything before the over variable, it runs perfectly.

Is there a reduction in the space for the selection variables? Do I need to change a configuration setting? Suggestions?

Thank you in advance.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Postgres SQL Question. - Limitation exceeded?

Postby doktor5000 » May 3rd, '15, 00:49

You might be better of asking that in some perl or postgres forum, I suppose there aren't that much people around here with both experience
on postgres migration from 8 => 9 and with running perl scripts for queries against it. Although you never know ...

Although you could try asking on either the Mageia dev or discuss mailinglists:
https://ml.mageia.org/wwsympa-wrapper.fcgi/info/dev
https://ml.mageia.org/wwsympa-wrapper.fcgi/info/discuss
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest