Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uHqug-00B36x-58 for pgsql-hackers@arkaria.postgresql.org; Wed, 21 May 2025 21:23:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uHque-00BShf-No for pgsql-hackers@arkaria.postgresql.org; Wed, 21 May 2025 21:23:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uHque-00BShX-DT for pgsql-hackers@lists.postgresql.org; Wed, 21 May 2025 21:23:44 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uHqub-000CdA-2D for pgsql-hackers@lists.postgresql.org; Wed, 21 May 2025 21:23:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=hR0yT1dDe0KWfRcRqWI1/yhOVUg7UeNbKn5EPAyhlsM=; b=rFReXE1+KtKjA936Utb8VdPxrA ipqAAYLAcvitqAe6tpdG6V6ii45ei0T0rtDzQJx6mZOyI4Ij3GUrYIgk1fPFylHY08KwDXqJgjSpB 0pshvovxokgaXE1lRPGYbm7p3Pl/g06r+QTEgGTZyE3Q+n64pvWhUl1PKZYFCuCLkp7XpqFUHCZ/d Ii2uY/abJlch3vpS5nrbNa4YjBrbwFLWh77DDkRgGdLaJLnoThXFviQGlje6HjOb4BxrShmfcunAe epayTmocOAL58FE/MyGl8mshTa3x1jzMJlJupStUWhIBs9OL2DKeH7bjFNidJgvFRXKhSYIIz98QT N3Po0NhQ==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1uHquW-00GR5J-0t; Wed, 21 May 2025 17:23:36 -0400 Date: Wed, 21 May 2025 17:23:36 -0400 From: Bruce Momjian To: Pavel Stehule Cc: Michael Paquier , Peter Eisentraut , Marcos Pegoraro , jian he , Dmitry Dolgov <9erthalion6@gmail.com>, Laurenz Albe , Erik Rijkers , Amit Kapila , DUVAL REMI , PostgreSQL Hackers Subject: Re: Re: proposal: schema variables Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 21, 2025 at 07:49:34AM +0200, Pavel Stehule wrote: > st 21. 5. 2025 v 2:21 odesílatel Michael Paquier napsal: > One thing that I keep hearing about this feature is that this would be > really helpful for migration from Oracle to PostgreSQL, helping a lot > with rewrites of pl/pgsql functions. > > There is one page on the wiki about private variables, dating back to > 2016: > https://wiki.postgresql.org/wiki/CREATE_PRIVATE_VARIABLE > > I wrote mail  > > https://www.postgresql.org/message-id/ > CAFj8pRB8kdWQCdN2X1_63c58+07Oy4Z+ruDK_xPTUP+Pe8R2Pw@mail.gmail.com > > and there is another wiki page https://wiki.postgresql.org/wiki/Variable_Design Yes, these URLs are very helpful, thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.