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 1vkGwX-00Cwsv-0L for pgsql-admin@arkaria.postgresql.org; Mon, 26 Jan 2026 07:23:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkGwW-006gJN-0T for pgsql-admin@arkaria.postgresql.org; Mon, 26 Jan 2026 07:23:24 +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.96) (envelope-from ) id 1vkGwV-006gJF-2U for pgsql-admin@lists.postgresql.org; Mon, 26 Jan 2026 07:23:24 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vkGwT-00000000VCZ-3zjI for pgsql-admin@lists.postgresql.org; Mon, 26 Jan 2026 07:23:23 +0000 Received: by mail-wm1-x344.google.com with SMTP id 5b1f17b1804b1-4801bc328easo47284935e9.3 for ; Sun, 25 Jan 2026 23:23:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1769412201; x=1770017001; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=9fCTYdCELbEmxo3+vnOniUW7A7BkThqzG5Wq0IZtuto=; b=asJTx1H1g0e7gnp0n7mNWZXiMX0uu8XyCiU7jIn84EfP0BnrIN59YZm9pxPhb/Hmqj BW0bqWDrwn7Dh2nAdYSbnafHQmN+E+9p73HQMcvmB7Jk08vs8mAYGVu+V5vQ91MUauBe oTcC80C+LlcFZIAEKLfEEAn7Eq0gXTOB6HUHq7OwJvhzgQ2xIg3dcrCUHM+3zDfbCtKs FOyXtQ9u0Yvyb7X3fUa1R2G/j1ycgyH7vdHL3e5qmS3IBzbZO3Eml63C+Yq7BmIR4FXx 34JdeBjRTuCE54KRKZ6SoK+Bv6Ia/wxYd7vaKT6vxYLGQjzWLxrpseWW54iAL8TL7xpa yPyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769412201; x=1770017001; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9fCTYdCELbEmxo3+vnOniUW7A7BkThqzG5Wq0IZtuto=; b=t/43anXF+P7dzCpFK8CKhTMPk7YJRM3Bdba+PJxZ1wCL9KPs95oznUk2yTzAjG8MLq CjrJ872LG2s12Zq5GgjG1xcv8BbBaiRPaRbMtZkLyytVemQQFWkrjQsa6BEoaSUdlLHz VRT4m5nWlmyvZfBQ1qClqQXfDhyh9XPyr6wzngcVO2Xcc7oXQzKbXX7bgv354uiHXU5l FhdllKMQ9rHrhL1YVTfG1pRPjvPUipw1PGpsmB+70Bhjks03sJYcHHyLgjnpB0veaNRX gH9VYai2WSTlOucU8VBVMyIqcEy91xQgUWOOLSiA//GmPA9TsoqBHQWwqDf4h14qnFj7 TVzw== X-Forwarded-Encrypted: i=1; AJvYcCXFHbvk3dIAHQ3j78xfAOqj8YnhrSxH7bJTeIvpr8x8Doenjx64tk9tkvOLgxDdWRzrNT2r5CkXtrRUaA==@lists.postgresql.org X-Gm-Message-State: AOJu0Yw0ZRY6Rix+xGNVWUrPNqHzAPqTvVx+C6hebl+3wQKo6PmZ1txi fIPBt3L2cW6XHE0oMeaNYXYGuPfRkssWS7Ai70x4J3sgQG9HDp6fdrw+rFcnEUXac/c= X-Gm-Gg: AZuq6aItpvj6y8FJrYvvA9BUTwNcsr5xcztIuUGYc49lebkL27/EfaEWxBpFLrPu1tK axkWjZG0/ktqXIygJL3zGKDqzXAbk7SUMmJmuqYQwlp9LXTl7Z66QGcb3f6HvYUiiHDqkYkuZ3q zYWzmPxrlkHZSIr4bo9hNNaAvqBIGRBRCt5kDVpb0ljewfNK0hgXakq7heH1RUDQVX2eKSBP06M Fa5hAykS4zy1hep2L+WumO/AZOZ6TxjI+0ZA/WRlpwi4/BmbhTAhJs6OdUfClrrMd6fTmATkc8e dTRius6++1klLNPtC1/L47rvW9Q2yJKE2ZFMNE2zcQSx0e2kPMgJIdbPZpKZx+xnKOovDnFHUAz 5jBb3bYWlKkEYW/wPRSIh/92eJ422coaO0IaoyDzZudFK9gAmzRu9+r/Eqdb8BEAs0dA84U94/w ofPJnlncAe4TKcB+pZ19l8wJqEspgAKG9HUcihtrgGWFY= X-Received: by 2002:a05:600d:640e:10b0:480:4a4f:c363 with SMTP id 5b1f17b1804b1-4805fa86191mr31696525e9.9.1769412200701; Sun, 25 Jan 2026 23:23:20 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:4cd4:ad4e:e4e4:66cb:81ac]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804703b59esm347562085e9.4.2026.01.25.23.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 23:23:20 -0800 (PST) Message-ID: Subject: Re: autoanalyze did not run From: Laurenz Albe To: =?UTF-8?Q?=D0=9E=D0=BB=D0=B5=D0=B3_?= =?UTF-8?Q?=D0=A1=D0=B0=D0=BC=D0=BE=D0=B9=D0=BB=D0=BE=D0=B2?= , Pgsql-admin Date: Mon, 26 Jan 2026 08:23:19 +0100 In-Reply-To: <0dce35ca-24fa-4234-99fe-071bd5725a32@ya.ru> References: <0dce35ca-24fa-4234-99fe-071bd5725a32@ya.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.2 (3.58.2-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2026-01-26 at 08:31 +0300, =D0=9E=D0=BB=D0=B5=D0=B3 =D0=A1=D0=B0=D0= =BC=D0=BE=D0=B9=D0=BB=D0=BE=D0=B2 wrote: > I try to investigate why autoanalyze did not run in time of our initial= =20 > loading data. Yes, I know, running analyze manually is highly=20 > recommended in such case. But is must run automatically too. You'd have to show more evidence that this is a bug, or provide a way to reproduce the problem. > select relid::regclass, n_live_tup, n_tup_ins, n_tup_upd,=20 > n_mod_since_analyze from pg_stat_user_tables as s join pg_class as c on= =20 > (s.relid=3Dc.oid) where s.autoanalyze_count=3D0 and relkind=3D'r' and=20 > n_live_tup>0 limit 1; > -[ RECORD 1 ]-------+---------- > relid=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| addresses > n_live_tup=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 13844405 > n_tup_ins=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 0 > n_tup_upd=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 0 > n_mod_since_analyze | 0 >=20 > PostgreSQL 17.7 (Debian 17.7-3.pgdg13+1) on x86_64-pc-linux-gnu,=20 > compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit (from PGDG) Are you sure that you committed the transaction? Is "track_activities" set to "on"? Yours, Laurenz Albe