From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
---|---|
To: | John Scalia <jayknowsunix(at)gmail(dot)com> |
Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Two PostgreSQL instances returning different output for same query |
Date: | 2022-08-30 15:49:18 |
Message-ID: | 20220830154918.GA3610@depesz.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Tue, Aug 30, 2022 at 11:21:26AM -0400, John Scalia wrote:
> I’m a bit stumped on this one. For one of my application teams both their DEV instance and UAT instance are running pg version 12.3 in AWS RDS, and I’ve used the same psql version 13.4.
>
> The query is a simple: SELECT to_jsonb(geom) FROM addresses LIMIT 1;
>
> On both databases the geom field is of data type geometry from postgis, but the two dbs are running different versions of Postgis. DEV is 3.0.2 while UAT is 2.5.2, but I don’t think this is causing the issue.
>
> Running the query on the DEV instance produces
> to_jsonb
> ———————————-
> {“type”: “Point”, “coordinates”: [-106.54569, 31.82908]}
>
> While running it on the UAT instance produces
> to_jsonb
> —————————————
> “0101000020E610009000000000000000“
Check installed extensions, and their versions in both dbs.
Best regards,
depesz
From | Date | Subject | |
---|---|---|---|
Next Message | Ron | 2022-08-30 15:50:48 | Re: Two PostgreSQL instances returning different output for same query |
Previous Message | David G. Johnston | 2022-08-30 15:28:36 | Re: Two PostgreSQL instances returning different output for same query |