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 1mzy5l-0005NX-0j for pgsql-novice@arkaria.postgresql.org; Wed, 22 Dec 2021 09:39:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzy5i-0002Sg-LN for pgsql-novice@arkaria.postgresql.org; Wed, 22 Dec 2021 09:39:22 +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 1mzy5i-0002SX-8F for pgsql-novice@lists.postgresql.org; Wed, 22 Dec 2021 09:39:22 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mzy5e-0007qH-Um for pgsql-novice@lists.postgresql.org; Wed, 22 Dec 2021 09:39:21 +0000 Received: by mail-wr1-x42c.google.com with SMTP id s1so3634173wra.6 for ; Wed, 22 Dec 2021 01:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=5LmiY+XILqN1GfTI3X+aYGFzm1s+93WM6H5K1rsr3Fo=; b=xzTY+IKTSvFA/s+vA8v5uTi6GHfWOcCYjjlrLOyBGAT10NwrbgXr1RTAY6Luwa5Ga8 ZItrwBRfouB8bWlLUtudSrxb3uDVIkEtSZe+IrE+zXm4ZV/LAIo2AKcuf9SNA8IyhfW9 fCId2wtr1Skf9sjoe79k+24Sa407gGB47Pia2rFDH4U+x80ovdgxgIgpGqd3yi8GyZve FNsJQE8u9cN+Y8QpOsNrpHqXpc6WsMQPa78SNa06PgOEgIyBI2qCGKuuZvaVWEEYtjzx S+O6o7Hy0okiUPAMdPMZbr08qpPv4RlmZy6ilERrW4QxgvoQwLF/tHZSiWka5tt2p6h+ U84w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=5LmiY+XILqN1GfTI3X+aYGFzm1s+93WM6H5K1rsr3Fo=; b=QnA3Mqo2nUssJLJ4kXyMO7sF8tElmvEvNT9d2FSKO0jseHcKM9Ppbzd2073KxaeZNt X28RqVYko7AU9kQYRT3hizbYIHjzoM0P+u9MqZJ2rfi0Fa7qyankD/wMtoLg9YvVaUyr oiqaW4bTNb8V9R7MgfMfiUlQTYPSt5T0EtdNk87gLUVCwEagF041qWoA6Kp20NXiPkIG a2HxDhY2BojIhwC/HcOwJtDeI9BFsjP3u9bFUgYal+wc1A0UYgKWAPbqErw6NHiOa119 PpX9KC/W6SU5V180v8F7xrYorvQ0p1Z3kO6G82uWYSVQNmxTTCCcSgoAuo3ZwvcNg3G/ /tUg== X-Gm-Message-State: AOAM533U37IstMNv6T4DNzl9HHnQUAipe7aA88zCj75Vcfxj1HkwjVsQ 8L68+QTe0m8DjrwawnblAtgl/YfBLmGqtQ== X-Google-Smtp-Source: ABdhPJzc/491fB2q6wUyX8xjUUjF7/DuUZs+hZXwK0mVtVPxpKXIhn/JgKWkYKvOCmDVDzfAdG5NeQ== X-Received: by 2002:a05:6000:188f:: with SMTP id a15mr1539444wri.153.1640165957809; Wed, 22 Dec 2021 01:39:17 -0800 (PST) Received: from localhost.localdomain (dynamic-ecbllfhf844bsxhrj-pd01.res.v6.highway.a1.net. [2001:871:5e:6b39:4518:25:34f3:c02f]) by smtp.gmail.com with ESMTPSA id k31sm1254518wms.21.2021.12.22.01.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Dec 2021 01:39:17 -0800 (PST) Message-ID: <90000e7812c6440a93872bc3b5f67cb6804d57ba.camel@cybertec.at> Subject: Re: Check explain plan of a running query in other session From: Laurenz Albe To: Jonas Gassenmeyer Cc: pgsql-novice@lists.postgresql.org Date: Wed, 22 Dec 2021 10:39:17 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-12-22 at 08:58 +0100, Jonas Gassenmeyer wrote: > Am Mo., 8. Nov. 2021 um 09:43 Uhr schrieb Laurenz Albe : > > There is nothing like that built into PostgreSQL, but you could try pg_show_plans: > > https://github.com/cybertec-postgresql/pg_show_plans > > i tried to install this extension. > > One more dump question: Where do I find this contrib folder? It is currently unclear > to me *where* to git clone this repo - all my other extensions just didn't need a > special place they just needed an make install. > This one seems to need a special place "somewhere between the PostgreSQL binaries". > Is there a PostgreSQL convention where to place such binaries? I don't think you have to put it into the PostgreSQL source tree. You can extract the source anywhere and use PGXS to build: PATH=/path/to/postgresql/bin:$PATH USE_PGXS=1 make You will need the PostgreSQL headers and "pg_config" installed. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com