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 1nVYRe-00041T-Vs for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Mar 2022 12:44:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nVYRc-0005jj-6Y for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Mar 2022 12:44:32 +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 1nVYRa-0005jB-M0 for pgsql-hackers@lists.postgresql.org; Sat, 19 Mar 2022 12:44:31 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nVYRX-0008Bb-4U for pgsql-hackers@postgresql.org; Sat, 19 Mar 2022 12:44:30 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A95CE5C00DC; Sat, 19 Mar 2022 08:44:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 19 Mar 2022 08:44:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=U9hOW7ZrJP8sx2q4IFxzIKAQ6AQdFjFKhjX925 HVnAo=; b=O0YyZQQYN5TOIe9eWZtH4726MKPiL02GLiVdVE8Jtj/IKdYsMDvgAU 6hgdYR9tXJq4pyMbqJdElXnUa7r0AMT36/5Pbd0iITBVD9Gff8efPPCEmr71wdk9 1jf6rAqumrW0imuFzxAFBxFjOhNuqYEWUhoD/mymJR1p68hgTfphCMRlpohAoJT3 qFt7W9oYB0trnJ2cdSiLQ5v9rWfW5KFzM2oIxKCG7jWD8sYMaSmXWdwZlAFQ+3QR MLNlSD1bFjy5HGT5Z7LOtpVhy4N5k3lBd0LzsSRKQDenuO1fpArjj3vyF/CV6TcY 6hRB7CKDUFQVoa+NuUnzFaKxPqBsvaNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=U9hOW7ZrJP8sx2q4I FxzIKAQ6AQdFjFKhjX925HVnAo=; b=SiYlPywAipFvMDxbUweEB5Z4+39bT6hW8 8++74/mHBB3fBVHlv3Vj8X0pyCiz6+COnnS0hyvgL/Az/XgnZMDL7KznWW3DDCtt BUGM8Z/MjOoZKqBY4VguUHg/c4LlQWoZl8+K9Pk5ffv/bNSx4SNL+vum86KsLv4X n+ai9UXCqkShaBB1ls2Mbiumph5/FGav2k5cvOjJedBt3s5kXGaN6RRuguguBHgv dfbI1kHgggg/eJXuC8jq9wyzGzjc1sUBO+CrkOqzpH+6k88I/Q8yG/VDliIy924M RFr2TIhR8jyH1PbfKTZtFQ6CvL8FTEfTAFaD8lkQq8eV3v6p5NQpg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefkedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 19 Mar 2022 08:44:22 -0400 (EDT) Date: Sat, 19 Mar 2022 21:44:18 +0900 From: Michael Paquier To: Hannu Krosing Cc: pgsql-hackers Subject: Re: Which hook to use when overriding utility commands (COPY ...) Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Y3t9aTiktMoFVBtG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Y3t9aTiktMoFVBtG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Mar 19, 2022 at 12:28:46PM +0100, Hannu Krosing wrote: > Which hook should I use when overriding the COPY command in an extension? CopyStmt goes through ProcessUtility(), so you can use the hook called ProcessUtility_hook to override what you want. -- Michael --Y3t9aTiktMoFVBtG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmI10CIACgkQnvQgOdby QH39IQ//fCSxBxNvFhwvxf+S2NyZYzM+yG6azBTvLilFRRckXMtlAyOeurKuRhXm Hf0K5MSuGDSgsxl0olbkFEx/zUse1ugU/LoswUTEY6/t5r2QNMKsJFc3TlHBzHKa f5IPlLkXVqE+RvfS0GOdXX/n2QiFJNGuB+4cZrLCnPvLZbmq89EZExs/R8s9tT2h FfAftrovj/zK6DHY0se3ksnv7w8vPa+FXorEcVqKajhiTl/Q/9AMFsh286/JGonw ARCMw1W9f/tnp6qVSq3FKxQhxw7ZUtUvUV7LmAG6P2hUPX5hQzj9Z2yGOhp0qrUX CtbFvYBw0vN3VGMk/idDG7Qfl/0tJThAgVX6EzKmDV1I4ydLmlhUffpsdutwaXuU KlI0/RjY4cshdTnui8eItJfLOxnRaP13MNc5MewfG6EKqT5RTLVEQnDycH+leJOS kNKr8lkKipe8E4a7Qynhe9dkWLiCOkWY33PIiK9kKSLN01yNiJU5bfbB9Q/0MG3s Cot/pI2uNgJ89iBOE2Y0BfwNPAeMigB8qMZLM6GSH+WuG+m0s9y+V+8ogISjpphM OJ+XLO6pAkeELwFppAOJYJOgcNNTtgMsyFBcfzbQxCkXNJzMjk6Ui+z26TBXbCg1 G6O0OtE37jjSvPw9HJbDpzYpX+Pbn7PALTa4q2l5RV+gr4S8uFQ= =Nqqa -----END PGP SIGNATURE----- --Y3t9aTiktMoFVBtG--