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 1p298c-0000dI-JH for pgsql-general@arkaria.postgresql.org; Mon, 05 Dec 2022 10:55:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p298b-0001m1-AK for pgsql-general@arkaria.postgresql.org; Mon, 05 Dec 2022 10:55:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p298a-0001ls-Va for pgsql-general@lists.postgresql.org; Mon, 05 Dec 2022 10:55:52 +0000 Received: from dog.elm.relay.mailchannels.net ([23.83.212.48]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p298X-0001tK-GU for pgsql-general@lists.postgresql.org; Mon, 05 Dec 2022 10:55:52 +0000 X-Sender-Id: hostpapa|x-authuser|martijn@upscene.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4722B341C76 for ; Mon, 5 Dec 2022 10:55:45 +0000 (UTC) Received: from s156.servername.online (unknown [127.0.0.6]) (Authenticated sender: hostpapa) by relay.mailchannels.net (Postfix) with ESMTPA id A5279341F3B for ; Mon, 5 Dec 2022 10:55:44 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1670237744; a=rsa-sha256; cv=none; b=w0Jfer5OrPvSYHdGwDP3evaYYne17kXupZLTJj+FcLSxdqK83nrDhZmSIjfrr00MPK/upl SOIt21a0K9mw4vhtxYLQSrK9gCfejs1BZNVHvHO6VUy4xQJ/xhgFTyVZxXTmr3Cbj6jh1P Q0M5k8faK2slKp/qD+faKogisuHHS3FKn4jigZ+49Zf/v+MMiBb9XWYzSkIilPPy1sVny7 2gL1OpCsjt2wk9FZq0MqZ7gDibjR994JY7tTIV/7c4sPnEzCQt61jvVw9ciCm52KqhwaVY U01CWHFdEZZUGxG+TVvLb6Wh4eNOlsLRjyAZS64xl2z+naeIOiU/J5EYTfqKnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1670237744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0660HfVZ0iebUa2A1GNXsZTtpMAy/ckHDfnQcn6jDio=; b=OPHJGq1GPFzX15BhbGJ4LpLL+kSwc9UylcE4L5XqljIJiHVcYiG98cKSxrQgoy1ADc5asN GQWcKz/JaDgCS0jHbBEPkE65kBE5uumUh+qB95GzmeHGBjx4ozxF8hhAhAdXjJDASWPvZL wsmG+lZaR0DC5BB56qtOpi5D1KwQs/aQm+MZvx+C77Gz/GChfYSKGivmpe1xy6wMNbbK8X cKBhilIN8KUHiK/YFa8Ia1gD8PkkqFsXWCkijlD1YiYGVpEET3Z5i1oV3mG5yyK6Jz917J OfH8spDcjwXTcY8ltxLMlcz0vSR9mNvLwdmhCW3EAuuJ5wR405f6soeFXe29DA== ARC-Authentication-Results: i=1; rspamd-7bd68c5946-wwkxn; auth=pass smtp.auth=hostpapa smtp.mailfrom=m.tonies@upscene.com X-Sender-Id: hostpapa|x-authuser|martijn@upscene.com X-MC-Relay: Neutral X-MailChannels-SenderId: hostpapa|x-authuser|martijn@upscene.com X-MailChannels-Auth-Id: hostpapa X-Cooperative-Ski: 2f94828412557807_1670237744960_2422986074 X-MC-Loop-Signature: 1670237744960:1773136669 X-MC-Ingress-Time: 1670237744959 Received: from s156.servername.online (s156.servername.online [204.44.192.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.126.30.34 (trex/6.7.1); Mon, 05 Dec 2022 10:55:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=upscene.com ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Subject:In-Reply-To:References:To:From:Message-ID:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0660HfVZ0iebUa2A1GNXsZTtpMAy/ckHDfnQcn6jDio=; b=HVogYWNGmGRohPz2KHf+EjSZzE 6TbRbNdUxSMCvvXd4DoJfFSUqek6eBIFN5WAiT3874K66HDBht2vfodq0nAB/+zUj2p9MAV5P1Mqz yriD8wby8aCgn5P5RWH1PooA8vhrSw2dmYR2wvkeW4zYAPsg/Yr78fcoluQc2DJXt9w25LLSGicqf XB4Ufs0RwyoKSGox1s8XrNu9LRqfMTx/Vetbdx8G9nl+2cjqgJKfTNBDXy0HY9MN0WRIbbhANmXng iqPJMRozf2XTViI/b2VCUYyI4TjiWpTwGGTFvd4HoC+9xIq87KBAmdJ3pSARJN8ZV1pIejMnmsHga xOEWtRMQ==; Received: from [45.144.219.154] (port=49323 helo=misc.upscene.om) by s156.servername.online with esmtpa (Exim 4.95) (envelope-from ) id 1p298Q-00Bn7J-Nd for pgsql-general@lists.postgresql.org; Mon, 05 Dec 2022 02:55:44 -0800 Received: from MARTIJNWS ( [192.168.1.70]) by upscene.com with SMTP (Mailtraq/2.17.7.3598) id UPSC716BE631 for pgsql-general@lists.postgresql.org; Mon, 05 Dec 2022 11:55:33 +0100 Message-ID: <6686077EEDC543C6ACEB072468E3538D@MARTIJNWS> From: "Martijn Tonies \(Upscene Productions\)" To: References: <23DE96C56DFC404096553A22DDC5093B@MARTIJNWS> <1579912.1669908194@sss.pgh.pa.us> <1937424.1669996938@sss.pgh.pa.us> In-Reply-To: <1937424.1669996938@sss.pgh.pa.us> Subject: Re: Stored procedure code no longer stored in v14 and v15, changed behaviour Date: Mon, 5 Dec 2022 11:55:24 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3508.205 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3508.205 X-Hops: 1 X-AuthUser: martijn@upscene.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >Also, we've *never* had storage of the original text for views. >I'm a little mystified by people claiming they use original >text for vetting functions when they clearly have no equivalent >ability for views ... or are your applications completely >view-free? Well, I would say that's annoying too! >If you want an audit comparison point, I'd suggest capturing >the result of pg_get_functiondef or one of its sibling functions >just after creating your function. "pg_dump -s" is another >pretty credible mechanism for capturing schema details. Do note, that pg_get_viewdef returns the SELECT statement of a view, no column name specification, while pg_get_function_def returns a CREATE statement. So the implementation is different too. With regards, Martijn Tonies Upscene Productions https://www.upscene.com Database Workbench - developer tool for Oracle, SQL Server, PostgreSQL, MySQL, InterBase, NexusDB and Firebird.