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 1muxfi-0005gf-Fs for pgsql-admin@arkaria.postgresql.org; Wed, 08 Dec 2021 14:11:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1muxfh-0006se-BU for pgsql-admin@arkaria.postgresql.org; Wed, 08 Dec 2021 14:11:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muxfg-0006sV-Uy for pgsql-admin@lists.postgresql.org; Wed, 08 Dec 2021 14:11:49 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1muxfa-0005Fv-70 for pgsql-admin@lists.postgresql.org; Wed, 08 Dec 2021 14:11:47 +0000 Received: by mail-qv1-xf34.google.com with SMTP id p3so2301165qvj.9 for ; Wed, 08 Dec 2021 06:11:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=2sjAj3XqK1b0cVvVm0nONvHMHHt1qXGWRuI3bOuy3Qo=; b=bqANuxzoInj2YhEmEqgLrOi2xUQ2pXZrphKvxczfp91J4GqWbqbLdovpLjMm60DnWB czVSiarPl6BhbSpu/XRf2gb54BPfdfNFC3hxhM0HnO3OEAAnOsI2UZ2ahfx48/xILK8M hWC5tZPNWXzfAx+2YBhrQ8rnyf48moYE/pTYbYHAPfC13Z16dPaZE6lI37xYFx6V3uK0 KvuihgG4dkdgyPN1m3P/9Nna5VBOw3orFfcbpIq2e9x+S40I8fegBajTnZUljpIn/xYE qtOz1szqn+qf0ISQ6JNPRspuDrEiNMhweyKm6dQawD6pE0i+g/hs4BYbT5KbtGQWSrpi F/Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=2sjAj3XqK1b0cVvVm0nONvHMHHt1qXGWRuI3bOuy3Qo=; b=w8zECQXR41f2KfanYdB79qKQ2azTLdv1L3JaLPf0cnGYR9iFzx2FAhlB6T5wynq7MK 4j+b5w5lQ7cMqWdvHd7BizM1nTfJ+YaKgPNVlTZaJCfPpMSR+jC8obt5vPlQhGY1AqZH sjPkye2Qy+X0QW9s73O84a0xp0U77e3NeKpBJGUhImabAlyCLwkn0Vz6JQ/Nh78JAbsK j1Nx6QNLBjq7gq6OSczTnM/mEk7fP7np2W9azQsb8TqzgP4i/f3m1FllDiur9lGGBCMH wYh3dNdiEVdYW6XQQMrG4M7gBny9xSTEBh6DpwaHRxZl64ZKqF/c2f7JcCOJM62eaLUR Tw8Q== X-Gm-Message-State: AOAM530c3rYlP6qjSjQIi6tRkL7qFLXGZbmT+4ngj4C7MLjcFWY+XKqK 7DHbV3XNYPjD8agUuatMmChBsoxlsFcbIw== X-Google-Smtp-Source: ABdhPJw/Zipds3fPJY7OnPMgi9TxOC0i9yoMkgeL49iWZaUvEL7+4mDFR3NoGAq9mK9ljc/jxFxOnA== X-Received: by 2002:a05:6214:906:: with SMTP id dj6mr7739155qvb.11.1638972700019; Wed, 08 Dec 2021 06:11:40 -0800 (PST) Received: from [192.168.2.100] (pool-72-79-19-93.nwrknj.east.verizon.net. [72.79.19.93]) by smtp.gmail.com with ESMTPSA id u10sm1796607qtx.3.2021.12.08.06.11.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 06:11:39 -0800 (PST) Content-Type: multipart/alternative; boundary="------------aocQz3QbgbWpZZlZWyoK1hdb" Message-ID: Date: Wed, 8 Dec 2021 09:11:38 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: AW: postgresql long running query Content-Language: en-US To: pgsql-admin@lists.postgresql.org References: <8718fe01e83140b18f7bc8777469c44d@MITMB5.helios.med.uni-muenchen.de> <52ae89c7f1564de085f43510f39982f9@MITMB5.helios.med.uni-muenchen.de> <07b023154ae14171a05a802e4dbe1cb2@MITMB5.helios.med.uni-muenchen.de> From: Mladen Gogala In-Reply-To: <07b023154ae14171a05a802e4dbe1cb2@MITMB5.helios.med.uni-muenchen.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------aocQz3QbgbWpZZlZWyoK1hdb Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/8/21 06:13, Dischner, Anton wrote: > > Do optimizer hints in PG exists? > > Obviously not: https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion > Yes, they do exist: http://pghintplan.osdn.jp/pg_hint_plan.html Packages can be downloaded here: https://osdn.net/projects/pghintplan/releases/73862 There is no package for version 14, you will have to build it from the source: https://github.com/ossc-db/pg_hint_plan -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com --------------aocQz3QbgbWpZZlZWyoK1hdb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 12/8/21 06:13, Dischner, Anton wrote:

 

Do optimizer hints in PG exists?

 

Obviously not: https://wiki.postgresql.org/wiki/OptimizerHintsDiscussion

Yes, they do exist: http://pghintplan.osdn.jp/pg_hint_plan.html

Packages can be downloaded here: https://osdn.net/projects/pghintplan/releases/73862

There is no package for version 14, you will have to build it from the source:

https://github.com/ossc-db/pg_hint_plan

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
--------------aocQz3QbgbWpZZlZWyoK1hdb--