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 1t0U3J-00Bfxi-Fa for pgsql-committers@arkaria.postgresql.org; Mon, 14 Oct 2024 23:00:37 +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 1t0U3G-000iLs-Ak for pgsql-committers@arkaria.postgresql.org; Mon, 14 Oct 2024 23:00:34 +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 1t0U3G-000iLj-3c for pgsql-committers@lists.postgresql.org; Mon, 14 Oct 2024 23:00:34 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t0U39-000uNz-O3 for pgsql-committers@lists.postgresql.org; Mon, 14 Oct 2024 23:00:33 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a9a0c40849cso231139866b.3 for ; Mon, 14 Oct 2024 16:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728946825; x=1729551625; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EpuaPMpI2hj14oVmBBCD1BgzjuE5y7PF5Z+qfoAZvhk=; b=LBlEXzQHQMS4Oa39Is9bS/nLgK41XvUD26WIOGkGT6PaSZHx5loOprgtvroItMVRPQ hlQmc7XBSasr2LIOWuIuYjm/lXgUsW5+IxPNmt5sx6ftrWXaWMcmzhblOqijnxz/cw8v RtCAiol8E1h5/VJAiyXdsI7YH7ZF7NdkZXpahxqtRcEeQu8V5D+2QWoI9R1aQ5mKK1BI o6Vzupzzf5/vKVDrAK6E9rWpBweCI2HGbYRc6nr+HWK4Ijpj0M56gmGUxWLZly4id/OB YJZXeV7pJYBwOntXwOcjXEuMXI39A98N5PpYaJ9WnSpTExOZk0KL3IUCSvr3Z8pLCLd3 DPqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728946825; x=1729551625; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EpuaPMpI2hj14oVmBBCD1BgzjuE5y7PF5Z+qfoAZvhk=; b=JGXeNOX7YZ6LBdSZ/A9zy/dHBjtWfMOVMCUhNeDptLJnxarPZXBl4GMLGu/i6gTHHn 2pgn5OXvNxa2Pa6e1xwZknUJj7C/KZr4IJSBSP+NH/BlVSfzgdoW+dO+zlmJmLsS257d pcu3OKdSZXl68auyvb031k9af1GtzdIH7ahSpudmIWU1U7wto8o441Rla7Z/rfpozXyU Cne1zbKOf6qCuXmErftgQ2PVxt3udQ/WCaJnTT1Z31+q+fW6Fk+reaakIiVri+Ghaurs NdLL3F2RuVwhn2Tqkg9/yhLesUEAICtKh+hLWojOd2Wf5oxIFZzD27JGD6FAdMx2mScq mg0g== X-Gm-Message-State: AOJu0YwV83QWjOd8rU529J3AiYlXPH5ExxzkSLeZnhexvFxwIMJ3DDDK wUSrawT4aNsw7Ws5DS5b822wwzTTQfLSdauIB3t7AKKl5hqW8F2vDXzkVGFchTshrZNl7FLz9wl c1VXn0FdC9Vkj4j+digPzuQDeIu4kD/no2tp3qfQp X-Google-Smtp-Source: AGHT+IEfcyJy4c/nVvjVQCq4fHEqYZm3pKWzE79RwKn6hVS7k025pAPR8M7KdX5XnXpmpJ/pMK+iHIVVsgPnYLdybMg= X-Received: by 2002:a17:907:7204:b0:a99:306c:cd75 with SMTP id a640c23a62f3a-a99b95f0d0emr1017667966b.54.1728946825168; Mon, 14 Oct 2024 16:00:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Tue, 15 Oct 2024 02:00:13 +0300 Message-ID: Subject: Re: pgsql: Create functions pg_set_relation_stats, pg_clear_relation_stats. To: Jeff Davis Cc: pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Oct 13, 2024 at 6:21=E2=80=AFPM Jeff Davis = wrote: > Create functions pg_set_relation_stats, pg_clear_relation_stats. > > These functions are used to tweak statistics on any relation, provided > that the user has MAINTAIN privilege on the relation, or is the database > owner. +#include "utils/array.h" +#include "utils/builtins.h" +#include "utils/acl.h" +#include "utils/rel.h" Please, check the alphabetical order of includes in stat_utils.c. ------ Regards, Alexander Korotkov Supabase