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 1uWYtP-00Fi11-V1 for pgsql-admin@arkaria.postgresql.org; Tue, 01 Jul 2025 11:11:15 +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 1uWYtN-005QIZ-Mf for pgsql-admin@arkaria.postgresql.org; Tue, 01 Jul 2025 11:11:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uWYtN-005QIO-76 for pgsql-admin@lists.postgresql.org; Tue, 01 Jul 2025 11:11:13 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uWYtJ-004wGO-0F for pgsql-admin@lists.postgresql.org; Tue, 01 Jul 2025 11:11:12 +0000 Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-4a585dc5f4aso64190801cf.2 for ; Tue, 01 Jul 2025 04:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751368268; x=1751973068; darn=lists.postgresql.org; h=date:to:in-reply-to:references:message-id:subject:mime-version:from :content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=H4hPYAW5uhUOztwObu9MsgWjBFzXpnhfs6eIdTfmxdE=; b=ciqaSCOqkCvN8IY89fzjoDmvn/vczMGyEhuhAaIiEg9zOEohXx8DMJy28NHk6IudLZ zRtgydOXgv9SIW/yjaMvzVqYUvo3fdoVmz/amWb/x5gtNktQE4pjg9iEFOvhmlGlEZRM 79S+sZkJDHecY3fmLebx3wsg3CgU9/BC5LKI8G5JytvgReCO7CMLQCKNBnpbl/ai/RXE Fnq031y/B5bDGgXx5bpXQdqrfrHo8bBVRSYJL+BjrN1TTHM4iXdMUfBg4lov+DqRsnfm +AKgq9BmgXTDlnGCAqQitBro4z9Bb9OL7rijlFXY/xsqbFfR//YNo3edR/1Aq4/vMRNR YgOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751368268; x=1751973068; h=date:to:in-reply-to:references:message-id:subject:mime-version:from :content-transfer-encoding:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=H4hPYAW5uhUOztwObu9MsgWjBFzXpnhfs6eIdTfmxdE=; b=kaY8ZHncDo/CaENHERe20r2/otQFUK5QRRuLtqeyaUDzvhQn4h2/8lkxcLo93BY9IV pGvpovRFgE+nRAiTfkv+eDBiAYanM0aE493pdo+Yst5iHAIzvbsq4fsTYRuPQ0MY79AY 6itm0yAzEckDhA61q0L840kdiMZDy5Y7fA7afHkctQwuxSW4fglvgCSIgTPveAEhClDP 9JgapiNS6Io9ai5he396/vDxapU6z7apM2CLUJtU561j9yNTl3eTMHmzL/+A8wCYU+pb FEc8Q2uWxGaJq+s5D2mi5FcHDC6511N0e9Mx0haRrE7sDbpa9MnAv0VdnkzJvtW+bwy2 Fuwg== X-Gm-Message-State: AOJu0YxE3T2ZGkvDZ+2XSMpTiC+icmROB5gdiemQ5u0J7nJxc9D5bxoQ vTHYAAnJb1jAy+tcRn1vQc3S4BLEHj9ZUVhtEdjDgCO9D6u88P0P8pi9UlMCmQ== X-Gm-Gg: ASbGncs0bRP5VfnnHKvcIcACnlIEoNnf5ixh/9iSBKKfu92y5NmwoR+qDY+YKDQgKgp 2V1y2Ow2VBYqom93I0p+4tQ7VkOz+Fcey5Z/QS4/JFGT33PkXHR/jeWES6sWspJRfy/d9OU+U4c 1ye6BhCwc4Roz4ZFSZ9Y42b3fVEX/eTbgcptfoQsumX+k2i0cxR7WArlGyaxy3L+FRWAAYhLwoL 94UBe0RW/WuEBtPVYWhvadkAQ7fvvHIyFl4p1Fp74WrO20Mdk+/aDn9noM6Igv2Q6mayiDwBdk6 FtNx507I0P+y7zXxUb4Cl0NYa+gbcXsYw6jJtXNeOg7OST/MAKotCxv5Qczz5avbXvbDTiEWXbc 8IUFxnslDag1eFTi+ X-Google-Smtp-Source: AGHT+IEoSRLGMO3xeZcjDMbVimdW3eF6DP0uIjwYR0WIz6xa/7+yeoh+B5mB22/CKzlShwFkzvbsrw== X-Received: by 2002:a05:622a:30d:b0:494:a2b8:88f0 with SMTP id d75a77b69052e-4a7fcab19cbmr259991031cf.33.1751368267828; Tue, 01 Jul 2025 04:11:07 -0700 (PDT) Received: from smtpclient.apple ([2601:14b:4100:214f:988c:d8f8:3879:17a5]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7d4431345adsm752605485a.9.2025.07.01.04.11.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jul 2025 04:11:07 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-C392753E-6901-47A6-8C77-42658DE87293 Content-Transfer-Encoding: 7bit From: "Edward J. Sabol" Mime-Version: 1.0 (1.0) Subject: Re: pg_upgrade failure due to dependencies Message-Id: References: <396f2fb636248f329c152c6eca189f4348fec726.camel@cybertec.at> In-Reply-To: <396f2fb636248f329c152c6eca189f4348fec726.camel@cybertec.at> To: Pgsql-admin Date: Tue, 1 Jul 2025 07:10:36 -0400 X-Mailer: iPad Mail (22F76) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail-C392753E-6901-47A6-8C77-42658DE87293 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On J= ul 1, 2025, at 5:37=E2=80=AFAM, Laurenz Albe <laurenz.albe@cybertec.at>= ; wrote:
Moreover, Pos= tgreSQL cannot check dependencies, since the function was defined using the "= old" style for SQL functions, where the function body is j= ust a string.  If they had used the standard conformi= ng new style, PostgreSQL would try to trach dependencies.  Not sure if t= hat would have been enough to avoid the problem, but clear= ly better.

Just for my ed= ification, how would one create that PostGIS function using the "standard-co= nforming new style"?

*All* of the examples in Postg= eSQL's current documentation are the "old" (string) style at https://www.postgre= sql.org/docs/18/xfunc-sql.html.

The only exa= mple of the new style in the PostgreSQL documentation that I could find is t= he very trivial second example at https://www.postgresql.org/docs/18/sq= l-createfunction.html. The other examples on that web page are all the o= ld style.

If the new style is better, perhaps someone should update the PostgreSQL d= ocumentation to use it more than just once. More complicated examples of "ne= w style" SQL functions are needed, I feel.

My web s= earches for more information on "standard-conforming new style" SQL function= s were not fruitful. All I kept finding were examples of the "old" kind in t= he first 3 pages of my search results. Any pointers to useful web pages cove= ring this topic in some detail would be appreciated.

Thanks,
Ed

= --Apple-Mail-C392753E-6901-47A6-8C77-42658DE87293--