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 1v3gj8-001w0J-At for pgsql-general@arkaria.postgresql.org; Tue, 30 Sep 2025 20:13:34 +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 1v3gj3-00CCzX-WD for pgsql-general@arkaria.postgresql.org; Tue, 30 Sep 2025 20:13:30 +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 1v3gj3-00CCzD-4y for pgsql-general@lists.postgresql.org; Tue, 30 Sep 2025 20:13:30 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v3giz-000xU6-0L for pgsql-general@postgresql.org; Tue, 30 Sep 2025 20:13:28 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 4B0E01D000DA; Tue, 30 Sep 2025 16:13:23 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Tue, 30 Sep 2025 16:13:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1759263203; x=1759349603; bh=hEnm7VUR9pB1vg2SJsbrq16gIxKAEshp00gEGie2FaY=; b= H7nTTYsGLlzle9xrmTJlyPaBctjLz3Pa97U8GWWV0z6nN1tgnfjsbt3qIzdZwB+7 SpU20PCXNeKdi5fDPYYwmn0iwrKqUuuu/6cS+NISWynt4971c33OCTy7frAFKvU2 vZYkQ+QazSUHppZ7w4KdBMmEkMVLHmPm5OqM5j/NJx/t6Qzd4BQoiYvNC3ohKmSi XNfRa5O1m2EOWOcOCx5xsIpL6QWSRlPxEuQ/T4EOShwSjwLcRf8V0wzk8jANl1BU cJ0K16p7X4VhfxAnCjcF5Ppmud0BG7uhrM6hqFonIxgUzLo0NFOM/xCI7aFkM3BM iD2Yh5sN/1IuFVW9XHjlaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1759263203; x=1759349603; bh=h Enm7VUR9pB1vg2SJsbrq16gIxKAEshp00gEGie2FaY=; b=xzviBc1vfJOt0dyeN VPRMGF+dCqH9rUuHM2HgICG5HwMqgD+5rPWzaQjIGYVMR/NBc+wut1OhDcc3gvk2 oyDKYcOJjFlNl9HCGZclYvp8mI0m83bBRIPP0cAefnzdamnFOKxd7jqmH7waJR1f UqnSswh965QP3PTvpaR0EgPCPya/W670ClOAWjRQmkE4n0/mBddfv+7VnCyHvoET 2navAF+tTLqlE8Cz79w5bgoyoZV3IiQFN8jvQxrR5M+QMtF25cX6ukBLMGcJAFUq 652VRzD9nhHAvOmTwZe2C/IqXnPSRovy3cq2mRyWyHG8+YFCSHVQduPvz2oQILB6 r3T/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdekudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttd dvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetvddtfeekfeffve eiueegvefgvdeugeeufeefudffleffhfdvgedtudduteekleenucffohhmrghinhepghhi thhhuhgsrdgtohhmpdhinhhsthgrlhhlrghtihhonhdrmhgunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhes rghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepkhgrmhhfohhokhdrfihonhhgsehthhhomhhsohhnrhgvuhhtvghr shdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvsh hqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Sep 2025 16:13:22 -0400 (EDT) Message-ID: Date: Tue, 30 Sep 2025 13:13:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_hint_tables To: "Wong, Kam Fook (TR Technology)" , "pgsql-general@postgresql.org" References: <01e5ec17-de91-4197-81d2-fa505802ab57@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/30/25 12:51, Wong, Kam Fook (TR Technology) wrote: > I am trying to use pg_hint_tables in AWS Aurora Postgres. I changed the Postgres parameter "pg_hint_plan.enable_hint_table = 1". Then I logout but can't login anymore with the following error message. To be clear it is pg_hint_plan not pg_hint_tables? > > “postgres@postgres:[2719]:ERROR: relation "hint_plan.hints" does not exist at character 21”. > > I undo the changes, log back in. Can't find a good resources that lead me to the root cause. So I try a few other things, see below. But no luck. Any guidance or help is greatly appreciated. From here: https://github.com/ossc-db/pg_hint_plan/blob/master/docs/installation.md Did you do?: " Loading pg_hint_plan pg_hint_plan does not require CREATE EXTENSION. Loading it with a LOAD command will activate it and of course you can load it globally by setting shared_preload_libraries in postgresql.conf. Or you might be interested in ALTER USER SET/ALTER DATABASE SET for automatic loading in specific sessions. postgres=# LOAD 'pg_hint_plan'; LOAD " > > ALTER EXTENSION pg_hint_plan UPDATE TO '1.4'; > GRANT SELECT, INSERT, UPDATE, DELETE ON hint_plan.hints TO PUBLIC; > GRANT USAGE ON SCHEMA hint_plan TO PUBLIC; > > Thank you > Kam Fook Wong -- Adrian Klaver adrian.klaver@aklaver.com