Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oT3Vx-0003bH-Ku for pgsql-admin@arkaria.postgresql.org; Tue, 30 Aug 2022 15:50:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oT3Vw-0006Yy-D5 for pgsql-admin@arkaria.postgresql.org; Tue, 30 Aug 2022 15:50:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oT3Vv-0006Yd-No for pgsql-admin@lists.postgresql.org; Tue, 30 Aug 2022 15:50:55 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oT3Vq-0003Ii-4v for pgsql-admin@lists.postgresql.org; Tue, 30 Aug 2022 15:50:54 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-11ba6e79dd1so17645608fac.12 for ; Tue, 30 Aug 2022 08:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc; bh=kqofJjd0HV/F/+0hhiAPQAeFheIYE776bHrKwr7NkSM=; b=L0GSja14ai1iI04FlWCrc9/zrcGIDoZcfakrw2u/vEBCUHgP/ErDl9DO/I6PvhY7s/ Gu0RGuDQsGxCfSC/v53EUt61kwlOjYyAkfUnStC3hHwhDjZHpwYwfNTYatbqL6Gj587/ Q9sm5gu2abKl6WEs4CN6tskZpaAPFUxOR2SIEDO+TYDv2x3wmspG/9y3+n2Ug9sCzUyI Tiv0h9/uiEVQpsKo1mE9tRIGVpnCCuEISu9H8B94ASvAQSy3eZi7Vl+MZ0DsZngHeRQz oe/9XG0cWO8eARFdv0c8wMCZpJbL3iMoHqRr/47yBqwpGw+2VRR09qxUODvmxY7yEsgb accA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc; bh=kqofJjd0HV/F/+0hhiAPQAeFheIYE776bHrKwr7NkSM=; b=YqLLvbmS1JupJYUIvJHLk7AIp1I6kHBYrFpaDB5D15LafPVlXPHnDtswIokmPuFw8Y RxhvFLqOGV9qOKUDW88JWlVQswA5v91eDG96W03yXONQNlIMeCjk6pr7ZJHrN7LT8wFr T/MGqNYChYmSjxBN4fMTZLpHz+/Lyu1djais4QpITgg6p5gZmnfVVLeweUXGAzIBJ6bT I6hcXM7ibjYMoAroH8Vw/6XZnCccURq0XXtyLXv36A8SH1YqZ+RqoATiF2MvABICyglR Fa5Rsa8eGOJ9Xkytck6WYX8b7r8ZxbYXqtgUqZWOPtJeMm2ObfsBsQIWU0i0hX0P7f2C +IBA== X-Gm-Message-State: ACgBeo38Ld/fiW/YG6DrlIEXTcUn0EGnaq9kZBWvlszRkxbRVrjdT5Ri 4O1Sz6MnX4v9cuOyafkVtVq/Cnql4js= X-Google-Smtp-Source: AA6agR42V1blMoPeEiebtlABa8TeYkIkcjpWdpRZ+NGSiAwg+jwujpkdbwXcvayIxQ8hjbDvgMs1iw== X-Received: by 2002:a05:6870:888d:b0:10d:aea8:142d with SMTP id m13-20020a056870888d00b0010daea8142dmr10417756oam.212.1661874649273; Tue, 30 Aug 2022 08:50:49 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id m4-20020a056808024400b00342d207e68bsm6269005oie.37.2022.08.30.08.50.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 08:50:48 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------mP9GNPns3Z4nUBxglyUYt2tP" Message-ID: <39157ae3-8341-a231-83a4-695685adcc4f@gmail.com> Date: Tue, 30 Aug 2022 10:50:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Two PostgreSQL instances returning different output for same query Content-Language: en-US To: pgsql-admin@lists.postgresql.org References: From: Ron In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------mP9GNPns3Z4nUBxglyUYt2tP Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/30/22 10:21, 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. Obligatory "why are you using 12.3 when 12.11 is the latest?" Upgrading takes all of 15 minutes. > The query is a simple: SELECT to_jsonb(geom) FROM addresses LIMIT 1; Are you *sure* that they are the same record?  (I *always* use ORDER BY**with**"LIMIT 1" when comparing records.) -- Angular momentum makes the world go 'round. --------------mP9GNPns3Z4nUBxglyUYt2tP Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 8/30/22 10:21, 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.

Obligatory "why are you using 12.3 when 12.11 is the latest?"  Upgrading takes all of 15 minutes.

The query is a simple:  SELECT to_jsonb(geom) FROM addresses LIMIT 1;

Are you sure that they are the same record?  (I always use ORDER BY with "LIMIT 1" when comparing records.)

--
Angular momentum makes the world go 'round.
--------------mP9GNPns3Z4nUBxglyUYt2tP--