Re: puzzling perl DBI vs psql problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: puzzling perl DBI vs psql problem
Date: 2014-03-13 19:25:39
Message-ID: 7262.1394738739@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com> writes:
> I have a weird issue that I can't figure out.
> If I run the exact same query through psql as through perl DBI, I get
> different results. I get far fewer results with DBI than through the psql
> command line.

Any possibility that the perl program is connecting to a different
database, with similar-but-not-identical data in it?

I've seen variants on that theme involving different users with different
search_path settings finding different-but-similarly-named tables in
different schemas of the same database.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message fburgess 2014-03-13 19:26:54 Very slow query in PostgreSQL 9.3.3
Previous Message Tom Lane 2014-03-13 19:22:36 Re: can't cast hstore to json