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 1p0m8z-0001UK-2q for pgsql-general@arkaria.postgresql.org; Thu, 01 Dec 2022 16:10:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0m8w-0007h7-VY for pgsql-general@arkaria.postgresql.org; Thu, 01 Dec 2022 16:10:34 +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 1p0m8w-0007gy-F2 for pgsql-general@lists.postgresql.org; Thu, 01 Dec 2022 16:10:34 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p0m8t-000547-Qm for pgsql-general@lists.postgresql.org; Thu, 01 Dec 2022 16:10:33 +0000 Received: by mail-ed1-x52b.google.com with SMTP id s12so2988643edd.5 for ; Thu, 01 Dec 2022 08:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=eFeJG/kadN7nsydh1MVOHgTqg6YNipWkccwePCPXa5w=; b=kQlDZtzs4F4xZEQ5hG8QSsZ7kIjGIB3KJXmXeGpz5J7YXYKeFwGcfJ8SsBgnTnyi/C kpgbY8LTjjj7g5iwSri6BKp+g9Y/0Fi4UU9g+r/wF68Wbws6j4sQ9QeWffPaHGwWCgcf ZzT6pBouV530oLqwDPMsFKD6O1JOJEcREYwRg6evPH+tpkclNHUX4eW/j2/VSyE+hwoe CBOmWyb1YhITGCRYM26hHQsWw85dZQXYLS/o2L7h4vZx7TmPuyE4dSvgqeeqUtjEC099 F3gGkTICDBQNzzPsIKk7IUyuGK8uTqZ1QCg7DwgMPxqcPL3dpRqJFnFk6wRCalQlQi34 YgQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eFeJG/kadN7nsydh1MVOHgTqg6YNipWkccwePCPXa5w=; b=RJAC9dgBk6swU57h7XSKY21UNbZkyUTqniXt/vtP7uOMnqLbyL2sFB+lpHwNmah4dD Dnwbvf+AOeO6v50J2A+0MlcpSpOuytBi0TZ48aGPtC4c9IYbTvbZev2DqYQ9ye2PhPkW 4k6eDkT0h799kz4ucvCSSaptd3J7jYnMXQ77GeGDvCXzEtcenkPN8G6RNBJXWeAFu8WB jdAp4Up4OzBJYasToD0RtXm7OPaJcE/GX4RSOTHQygEm7tLemM1Y3y3cblT1Y9k/OjcZ gpko2pSQbpMaJN6O4Rqo+CqF0xPGeIBFPd7dUe0Z3NlOFUlt6mLeFCSoGs3pMZEe4KqD uo7w== X-Gm-Message-State: ANoB5plEiESs5EHDzCZlNOYiMF9i9tslzNprZm/7uZF/Oeki89VFf7cP hHno9Nrg3UhvwCYO17f4Ztratw== X-Google-Smtp-Source: AA0mqf6ky+m7OOITqie1F1scjIX7VQS7COQlLobw8EROS0MTxgVPAaKuI31cTK/i15EPwecY0pivLQ== X-Received: by 2002:a05:6402:24a0:b0:458:ad54:20d5 with SMTP id q32-20020a05640224a000b00458ad5420d5mr58979638eda.86.1669911030060; Thu, 01 Dec 2022 08:10:30 -0800 (PST) Received: from localhost.localdomain (mobiledyn-62-240-134-154.mrsn.at. [62.240.134.154]) by smtp.gmail.com with ESMTPSA id c19-20020aa7d613000000b0046ba536ce52sm1847903edr.95.2022.12.01.08.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 08:10:29 -0800 (PST) Message-ID: Subject: Re: Stored procedure code no longer stored in v14 and v15, changed behaviour From: Laurenz Albe To: Dominique Devienne , Tom Lane Cc: "David G. Johnston" , "Martijn Tonies (Upscene Productions)" , pgsql-general@lists.postgresql.org Date: Thu, 01 Dec 2022 17:10:27 +0100 In-Reply-To: References: <23DE96C56DFC404096553A22DDC5093B@MARTIJNWS> <1579912.1669908194@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2022-12-01 at 16:38 +0100, Dominique Devienne wrote: > FWIW, we have a custom schema introspection and diff'ing ad-hoc framework, > and the fact the original SQL is not conserved as-is has also created > issues for us. > > On Oracle, our SQL was preserved as-is, so could be compared reliably. While on > PostgreSQL, some names-in-SQL are rewritten, the text reformatted, > etc... > > So it's not just a matter of browsing the schema. For us, it's a > *functional* issue. --DD This is arguable, but my opinion is that this is not a robust way to do development. You should use a schema versioning tool like Liquibase, develop schema migration scripts and maintain the SQL code in a source repository like other software. At any rate, you won't be able to do it in your accustomed way in PostgreSQL. Yours, Laurenz Albe