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.96) (envelope-from ) id 1vffeG-003yTy-0V for pgsql-performance@arkaria.postgresql.org; Tue, 13 Jan 2026 14:45:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vffeE-005Ay1-0K for pgsql-performance@arkaria.postgresql.org; Tue, 13 Jan 2026 14:45:30 +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.96) (envelope-from ) id 1vffeD-005Axs-2X for pgsql-performance@lists.postgresql.org; Tue, 13 Jan 2026 14:45:30 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vffeB-000Dap-1k for pgsql-performance@postgresql.org; Tue, 13 Jan 2026 14:45:29 +0000 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-7cdf7529bb2so5559573a34.2 for ; Tue, 13 Jan 2026 06:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768315527; x=1768920327; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=T4jQ1fDbwApMOfOjlzqg2u+gwWfZIUNZ0/tyujnz7Oo=; b=WYJF0yhB5MpIcxPHfop8zMoMOqRYM6f4oWDVxDNJ7HnjdzbdR8EWzFCx9dXfbm++79 JfoO5Bz9WWwm+GcxuQtKAgddw/TkMzJ2MXEQH9ianzoZ0J3LUBQkxrmjy2y8ckU7JaaW XZ8TfE8wOfj6a45zAlGwkhK8noCIJ5uTQYxBAZ0wBEMiTGj9bef68awQtNjy8KAZUt8B RC8zHUCHl7ngFjwJBq+G1TtyhA3eDRDPg3MCOLJUcvh5p2KEI66tkEDJFyRVJxW4DkQS AlBqUsPxHYcvZtBvxtfjzceaB4iiWSExgQ8gmOohql1nDx9CFISAXkPfafwYCswX53Uz ZDUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768315527; x=1768920327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T4jQ1fDbwApMOfOjlzqg2u+gwWfZIUNZ0/tyujnz7Oo=; b=tAFeRIm+js99DbabI7bRUelBiyOmXESY8CrOd2YNOmCRIzm0dGTWv1QX7IHnTEkpga /V9oCXuknstsi0ObA1CJBEz+WAkjjkdWhQ3qoFcoOMyBmjDFVj5pLXRQ7tNVnV/MHaJ1 IpuOvb8HKv8DIsDs/dC01QE4pw94RdaqAuoAik4A3AaOmPgqijlgjnWP7q+8/s6b71+9 Kc9DQBhf/COaAnWifykabINXxQnL+1MxFQsnv+ksd9keYJ180TKn50xZRN3hxVzl6S8w b3sdOM+tka8iv2/ZCpaWIALTCenuaYZ9zWHwBtEn2VrPWtfGJaw7v5ip0NeAV+AjIQvA jyoA== X-Gm-Message-State: AOJu0YyptF95ZyCtlB/i00pQYNQ109CTQXVGNeO+vBHQgaF67Cft3XLb upfTryshKL82k1+YFaRDztsgTNhyOIAO627bD/mgtIm1H5wImuR744eVIfgA9WXWcXKRRtCi8Zn TU1rxcnHAKNc1pzKTaEctmC69Q73+lus= X-Gm-Gg: AY/fxX6E+Rj+zUaSBjFDnbCnpl2cIceD8667kSjy8LTfHkzpu/654xn97T2krWrpqoD OntWCl0FyieYKPLUAWgkPBGvBfXFOxxqlD4pGu2dKMUr0p8XpC8gZK63dGU3ivTAMw5zCEuBPRg rG9xBXeeX/jJ3Vs8hK68odeXTKfueg91tfU+Gq9k9zKR2JKf0eyEWnICvHKeoVFM7BBJDvJ1Zxe b3KS07ND6HDaftVPazIoouJQ036VhPdScPzpl450s/jsT2CSSfl791nicYiIrH4GJEdOEZbFkmL zigD++qDH1BDmt9NStzYHOFnFbys X-Google-Smtp-Source: AGHT+IFNwOK8IOztMC8mqQTUfsVfzOicw9eLKnzXpyzRKvfjQpEOVXBkwS41vGHOP17yvjvzBGyF+CI5oSkgqCnB4Z0= X-Received: by 2002:a4a:d402:0:b0:65b:2546:8428 with SMTP id 006d021491bc7-65f54ee0b8dmr7738271eaf.26.1768315527018; Tue, 13 Jan 2026 06:45:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Tue, 13 Jan 2026 09:44:49 -0500 X-Gm-Features: AZwV_Qh14dw0xs0wEJySSqJ2ry9O19wWfnht2bBsbYDq1qhfNfzkmBdRb4D6KkE Message-ID: Subject: Re: small database huge planning time To: Alexander Kulikov Cc: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary="000000000000d6bd6b0648460ae8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d6bd6b0648460ae8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 13, 2026 at 4:16=E2=80=AFAM Alexander Kulikov wrote: > I have got huge planning time for a query in quite small database in Port= greSQL 17 > Planning Time: 452.796 ms > > > shared_preload_libraries =3D 'online_analyze, plantuner, pg_stat_statements' Maybe try without that 'plantuner' extension? 2. querry itself in query.sql. > > A smaller and cleaner test query would make it much easier to get help, FYI= . Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --000000000000d6bd6b0648460ae8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jan 13, 2026 at 4:16=E2=80=AFAM A= lexander Kulikov <a-kulikov@hot= mail.com> wrote:
=20
I have got huge planning time for a query in quite sma=
ll database in PortgreSQL 17=20
 Planning Time: 452.796 ms
> shared_preload_libraries =3D 'online= _analyze, plantuner, pg_stat_statements'

Maybe= try without that 'plantuner' extension?

2. querry itself in query.sql.

A smaller and cleaner t= est query would make it much easier to get help, FYI.

<= /div>

Cheers,
Greg

--=
Enterprise Postgres Soft= ware Products & Tech Support

--000000000000d6bd6b0648460ae8--