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 1v3guH-001yhO-Lc for pgsql-general@arkaria.postgresql.org; Tue, 30 Sep 2025 20:25:05 +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 1v3guE-00CKf2-W4 for pgsql-general@arkaria.postgresql.org; Tue, 30 Sep 2025 20:25:03 +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 1v3guE-00CKes-JS for pgsql-general@lists.postgresql.org; Tue, 30 Sep 2025 20:25:03 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3guC-000kpK-2J for pgsql-general@postgresql.org; Tue, 30 Sep 2025 20:25:02 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-33082aed31dso7027311a91.3 for ; Tue, 30 Sep 2025 13:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759263900; x=1759868700; darn=postgresql.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=+Ljmv5tmb+4/hSxFCkF7SmZ1zFSsiOF1+6Dbz6h+OWI=; b=dqZJmEtjCoSVOHMx0AerBhvskKl4B4/bumCA/u4QER6whjn3lOZi6iUUnL+m3PkU5I hwLlbUsy3U6YPmHiMrp/Mgmf/QnDeBX03S5raJENh/vegNWVUOshSJsXPo6b8E/rb7Bl igrG1yjqiB6Pt1htp4evjACorqVQdLBw/e9CYpW3ih5cPQX7ip2NgVfPZzaAu8eUhBIO OimSqbfuGeMN5PCVppTCV0cO769uOjc7Hj4DxgTH1SIIVWQK/rhwf0VYvNkNFR3RKIlq 6U9Z9YcNtWggHOnXZSKcLiBHacQUgrusIx3v23So9fInMhZD6O4Fh54ToWZmwo1nP0t4 p+Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759263900; x=1759868700; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Ljmv5tmb+4/hSxFCkF7SmZ1zFSsiOF1+6Dbz6h+OWI=; b=ozJkAIhJ3/j6zC934ZMS+xq7fzM/TqzM/SSr6iRsluLZN5Q2HVw5KNzoxp6vj9ljUd rIJXW65qCN06kPrVGt8e+WZDXAluTDVUdgR7T5ip6g7y1EkEi4ssAK0aPDNr7WeFbL2M ucxfz2RxCheWhtj5QiWUsLW3tGRLhY9kq3ybVVQNncffkpLQn79hhdFWhP0jwLOoRwp7 zD9syL2Jy3Q/omdrVfD4Za34gtCy5ZTCbstP2zyO/16AnjrOtnJbkiWIdd1g/OVQasNR dT4Ql8ynIQ4/P+AbNqI7jyOTvV43Gni4F2j/U5jmzgLWB0Q12Cp+zTmOMGrKpLwHrPQa yz8w== X-Forwarded-Encrypted: i=1; AJvYcCV2WLGWxjoa0GckJS0qEycVo9o/2ntnfaFGUV2ju4VB8yppx2m+CyWz6DmAEclXWF7u13ke4cZejpwmvZOk@postgresql.org X-Gm-Message-State: AOJu0Yy52sOJs7OBwLe8oX3AT5xV4OnlTmx+3njeLJd1iZDADRxjv86o s3DdUY5CewhWxbIhy9TVbPhNlvGZf3cBvtnGnQe5cYG9caDscIy4yjbo X-Gm-Gg: ASbGnctJSFM/Cm4CFkrlpNlmW4XbAdPbGUMycu+gcOCFke+0Ndavg6LEzEUOTpphnw8 aDoKgbjFH0C9VXSiV7U2BUeYp9aLGreO4ujhhD/Xevz1rjplAX9x8vUHKpUaMdZx1/50iQ5rvHl yM7b4M1xY7+LrhHZEhFt6uyV1MAF2A1gTntdpQmlppvT6yqCHaSPZInSKK4mySNQH4Mv/+ABihL BoVVpu0Qam5Vfvxa2nzoj4t16S9/SKYSdqmYLiZ0AjSmkU1xU7rwh8G4YmT7168qOb7zCStkkt4 KV3I1FbIv/36DDmErKirlX85bnNBJsdfxvr0QQwDJvKoAUTCjuGquq1D4g/M4V+WYpCJK0R7jsR LHeK20m6AE+b8Gx+3HMWiWCmU5NnNNuyfhRHM+dgjdEEMjX14d2VCgN+52xyLt0Y= X-Google-Smtp-Source: AGHT+IEUIOlJjC0b0Z4Hg7SZezP0vUzhBVw+0Q12LtSOI5cdJdB1WlhO71kEykXvpFrzPv6nJULuxw== X-Received: by 2002:a17:90b:1a91:b0:338:2ed3:affb with SMTP id 98e67ed59e1d1-339a6f63f44mr694263a91.26.1759263900024; Tue, 30 Sep 2025 13:25:00 -0700 (PDT) Received: from smtpclient.apple ([15.220.16.41]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-339a6ec240dsm423144a91.10.2025.09.30.13.24.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Sep 2025 13:24:59 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: pg_hint_tables Date: Tue, 30 Sep 2025 14:24:48 -0600 Message-Id: <10E7B5A6-9AAF-4B55-A604-2E005530B391@gmail.com> References: Cc: Kam Fook Wong , pgsql-general@postgresql.org In-Reply-To: To: Adrian Klaver X-Mailer: iPhone Mail (22G100) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I am top posting because I believe you have =E2=80=9Chikacked=E2=80=9D a thr= ead.=20 Rather than replying to an existing thread unrelated to your topic you shoul= d start your own specific thread.=20 > On Sep 30, 2025, at 2:13=E2=80=AFPM, Adrian Klaver wrote: >=20 > =EF=BB=BFOn 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 P= ostgres parameter "pg_hint_plan.enable_hint_table =3D 1". Then I logout but= can't login anymore with the following error message. >=20 > To be clear it is pg_hint_plan not pg_hint_tables? >=20 >> =E2=80=9Cpostgres@postgres:[2719]:ERROR: relation "hint_plan.hints" does= not exist at character 21=E2=80=9D. >> I undo the changes, log back in. Can't find a good resources that lead m= e to the root cause. So I try a few other things, see below. But no luck. = Any guidance or help is greatly appreciated. >=20 > =46rom here: >=20 > https://github.com/ossc-db/pg_hint_plan/blob/master/docs/installation.md >=20 > Did you do?: >=20 > " > Loading pg_hint_plan >=20 > pg_hint_plan does not require CREATE EXTENSION. Loading it with a LOAD com= mand will activate it and of course you can load it globally by setting shar= ed_preload_libraries in postgresql.conf. Or you might be interested in ALTER= USER SET/ALTER DATABASE SET for automatic loading in specific sessions. >=20 > postgres=3D# 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 >=20 >=20