agora inbox for [email protected]  
help / color / mirror / Atom feed
Re: [HACKERS] WIP: Aggregation push-down
270+ messages / 4 participants
[nested] [flat]

* Re: [HACKERS] WIP: Aggregation push-down
@ 2020-01-11 01:11  Tomas Vondra <[email protected]>
  0 siblings, 1 reply; 270+ messages in thread

From: Tomas Vondra @ 2020-01-11 01:11 UTC (permalink / raw)
  To: Antonin Houska <[email protected]>; +Cc: Alvaro Herrera <[email protected]>; Richard Guo <[email protected]>; Tom Lane <[email protected]>; Michael Paquier <[email protected]>; pgsql-hackers

Hi,

I've been looking at the last version (v14) of this patch series,
submitted way back in July and unfortunately quiet since then. Antonin
is probably right one of the reasons for the lack of reviews is that it
requires interest/experience with planner.

Initially it was also a bit hard to understand what are the benefits
(and the patch shifted a bit), which is now mostly addressed by the
README in the last patch. The trouble is that's hidden in the patch and
so not immediately obvious to people considering reviewing it :-( Tom
posted a nice summary in November 2018, but it was perhaps focused on
the internals.

So my first suggestion it to write a short summary with example how it
affects practical queries (plan change, speedup) etc.

My second suggestion is to have meaningful commit messages for each part
of the patch series, explaining why we need that particular part. It
might have been explained somewhere in the thread, but as a reviewer I
really don't want to reverse-engineer the whole thread.


Now, regarding individual parts of the patch:


1) v14-0001-Introduce-RelInfoList-structure.patch
-------------------------------------------------

- I'm not entirely sure why we need this change. We had the list+hash
   before, so I assume we do this because we need the output functions?

- The RelInfoList naming is pretty confusing, because it's actually not
   a list but a combination of list+hash. And the embedded list is called
   items, to make it yet a bit more confusing. I suggest we call this
   just RelInfo or RelInfoLookup or something else not including List.

- RelInfoEntry seems severely under-documented, particularly the data
   part (which is void* making it even harder to understand what's it for
   without having to read the functions). AFAICS it's just simply a link
   to the embedded list, but maybe I'm wrong.

- I suggest we move find_join_rel/add_rel_info/add_join_rel in relnode.c
   right before build_join_rel. This makes diff clearer/smaller and
   visual diffs nicer.


2) v14-0002-Introduce-make_join_rel_common-function.patch
---------------------------------------------------------

I see no point in keeping this change in a separate patch, as it prety
much just renames make_join_rel to make_join_rel_common and then adds 

   make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
   {
       return make_join_rel_common(root, rel1, rel2);
   }

which seems rather trivial and useless on it's own. I'd just merge it
into 0003 where we use the _common function more extensively.


3) v14-0003-Aggregate-push-down-basic-functionality.patch
---------------------------------------------------------

I haven't done much review on this yet, but I've done some testing and
benchmarking so let me share at least that. The queries I used were of
the type I mentioned earlier in this thread - essentially a star schema,
i.e. fact table referencing dimensions, with aggregation per columns in
the dimension. So something like

   SELECT d.c, sum(f) FROM fact JOIN dimension d ON (d.id = f.d_id)
   GROUP BY d.c;

where "fact" table is much much larger than the dimension.

Attached is a script I used for testing with a bunch of queries and a
number of parameters (parallelism, size of dimension, size of fact, ...)
and a spreadsheed summarizing the results.

Overall, the results seem pretty good - in many cases the queries get
about 2x faster and I haven't seen any regressions. That's pretty nice.

One annoying thing is that this only works for non-parallel queries.
That is, I saw no improvements with parallel queries. It was still
faster than the non-parallel query with aggregate pushdown, but the
parallel query did not improve.

An example of timing looks like this:

   non-parallel (pushdown = off): 918 ms
   non-parallel (pushdown = on):  561 ms
   parallel (pushdown = off):     313 ms
   parallel (pushdown = on):      313 ms

The non-parallel query gets faster because after enabling push-down the
plan changes (and we get partial aggregate below the join). With
parallel query that does not happen, the plans stay the same.

I'm not claiming this is a bug - we end up picking the fastest execution
plan (i.e. we don't make a mistake by e.g. switching to the non-parallel
one with pushdown).

My understanding is that the aggregate pushdown can't (currently?) be
used with queries that use partial aggregate because of parallelism.
That is we can either end up with a plan like this:

   Finalize Aggregate
     -> Join
       -> Partial Aggregate
       -> ...

or a parallel plan like this:

   Finalize Aggregate
     -> Gather
         -> Partial Aggregate
             -> Join
                 -> ...
                 -> ...

but we currently don't support a combination of both

   Finalize Aggregate
     -> Gather
         -> Join
             -> Partial Aggregate
             -> ...

I wonder if that's actually even possible and what would it take to make
it work?


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services 


Attachments:

  [application/vnd.oasis.opendocument.spreadsheet] pushdown-agg.ods (18.1K, ../../20200111011124.efacqhdsptc36pm2@development/2-pushdown-agg.ods)
  download

  [application/x-sh] pushdown.sh (2.7K, ../../20200111011124.efacqhdsptc36pm2@development/3-pushdown.sh)
  download

^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* Re: [HACKERS] WIP: Aggregation push-down
@ 2020-01-16 15:25  Antonin Houska <[email protected]>
  parent: Tomas Vondra <[email protected]>
  0 siblings, 1 reply; 270+ messages in thread

From: Antonin Houska @ 2020-01-16 15:25 UTC (permalink / raw)
  To: Tomas Vondra <[email protected]>; +Cc: Alvaro Herrera <[email protected]>; Richard Guo <[email protected]>; Tom Lane <[email protected]>; Michael Paquier <[email protected]>; pgsql-hackers

Tomas Vondra <[email protected]> wrote:

> Hi,
> 
> I've been looking at the last version (v14) of this patch series,
> submitted way back in July and unfortunately quiet since then. Antonin
> is probably right one of the reasons for the lack of reviews is that it
> requires interest/experience with planner.
> 
> Initially it was also a bit hard to understand what are the benefits
> (and the patch shifted a bit), which is now mostly addressed by the
> README in the last patch. The trouble is that's hidden in the patch and
> so not immediately obvious to people considering reviewing it :-( Tom
> posted a nice summary in November 2018, but it was perhaps focused on
> the internals.
> 
> So my first suggestion it to write a short summary with example how it
> affects practical queries (plan change, speedup) etc.

I think README plus regression test output should be enough for someone who is
about to review patch as complex as this.

> My second suggestion is to have meaningful commit messages for each part
> of the patch series, explaining why we need that particular part. It
> might have been explained somewhere in the thread, but as a reviewer I
> really don't want to reverse-engineer the whole thread.

ok, done.

> Now, regarding individual parts of the patch:
> 
> 
> 1) v14-0001-Introduce-RelInfoList-structure.patch
> -------------------------------------------------
> 
> - I'm not entirely sure why we need this change. We had the list+hash
>   before, so I assume we do this because we need the output functions?

I believe that this is what Tom proposed in [1], see "Maybe an appropriate
preliminary patch is to refactor the support code ..." near the end of that
message. The point is that now we need two lists: one for "plain" relations
and one for grouped ones.

> - The RelInfoList naming is pretty confusing, because it's actually not
>   a list but a combination of list+hash. And the embedded list is called
>   items, to make it yet a bit more confusing. I suggest we call this
>   just RelInfo or RelInfoLookup or something else not including List.

I think it can be considered a list by the caller of add_join_rel() etc. The
hash table is hidden from user and is empty until the list becomes long
enough. The word "list" in the structure name may just indicate that new
elements can be added to the end, which shouldn't be expected if the structure
was an array.

I searched a bit in tools/pgindent/typedefs.list and found at least a few
structures that also do have "list" in the name but are not lists internally:
CatCList, FuncCandidateList, MCVList.

Actually I'm not opposed to renaming the structure, but don't have better idea
right now. As for *Lookup: following is the only use of such a structure name
in PG code and it's not something to store data in:

typedef enum
{
	IDENTIFIER_LOOKUP_NORMAL,	/* normal processing of var names */
	IDENTIFIER_LOOKUP_DECLARE,	/* In DECLARE --- don't look up names */
	IDENTIFIER_LOOKUP_EXPR		/* In SQL expression --- special case */
} IdentifierLookup;

> - RelInfoEntry seems severely under-documented, particularly the data
>   part (which is void* making it even harder to understand what's it for
>   without having to read the functions). AFAICS it's just simply a link
>   to the embedded list, but maybe I'm wrong.

This is just JoinHashEntry (which was also undocumented) renamed. I've added a
short comment now.

> - I suggest we move find_join_rel/add_rel_info/add_join_rel in relnode.c
>   right before build_join_rel. This makes diff clearer/smaller and
>   visual diffs nicer.

Hm, it might improve readability of the diff, but this API is exactly where I
still need feedback from Tom. I'm not eager to optimize the diff as long as
there's a risk that these functions will be removed or renamed.

> 2) v14-0002-Introduce-make_join_rel_common-function.patch
> ---------------------------------------------------------
> 
> I see no point in keeping this change in a separate patch, as it prety
> much just renames make_join_rel to make_join_rel_common and then adds 
> 
>   make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
>   {
>       return make_join_rel_common(root, rel1, rel2);
>   }
> 
> which seems rather trivial and useless on it's own. I'd just merge it
> into 0003 where we use the _common function more extensively.

ok. I thought that this improves readability of the diffs, but it doesn't look
that bad if this is included in 0003.

> 
> 3) v14-0003-Aggregate-push-down-basic-functionality.patch
> ---------------------------------------------------------
> 
> I haven't done much review on this yet, but I've done some testing and
> benchmarking so let me share at least that. The queries I used were of
> the type I mentioned earlier in this thread - essentially a star schema,
> i.e. fact table referencing dimensions, with aggregation per columns in
> the dimension. So something like
> 
>   SELECT d.c, sum(f) FROM fact JOIN dimension d ON (d.id = f.d_id)
>   GROUP BY d.c;
> 
> where "fact" table is much much larger than the dimension.
> 
> Attached is a script I used for testing with a bunch of queries and a
> number of parameters (parallelism, size of dimension, size of fact, ...)
> and a spreadsheed summarizing the results.
> 
> Overall, the results seem pretty good - in many cases the queries get
> about 2x faster and I haven't seen any regressions. That's pretty nice.

Thanks for such an elaborate testing! The ultimate goal of this patch is to
improve sharding (using postgres_fdw), but it's nice to see significant
improvement even for local queries.

> One annoying thing is that this only works for non-parallel queries.
> That is, I saw no improvements with parallel queries. It was still
> faster than the non-parallel query with aggregate pushdown, but the
> parallel query did not improve.

> An example of timing looks like this:
> 
>   non-parallel (pushdown = off): 918 ms
>   non-parallel (pushdown = on):  561 ms
>   parallel (pushdown = off):     313 ms
>   parallel (pushdown = on):      313 ms
> 
> The non-parallel query gets faster because after enabling push-down the
> plan changes (and we get partial aggregate below the join). With
> parallel query that does not happen, the plans stay the same.
> 
> I'm not claiming this is a bug - we end up picking the fastest execution
> plan (i.e. we don't make a mistake by e.g. switching to the non-parallel
> one with pushdown).
> 
> My understanding is that the aggregate pushdown can't (currently?) be
> used with queries that use partial aggregate because of parallelism.
> That is we can either end up with a plan like this:
> 
>   Finalize Aggregate
>     -> Join
>       -> Partial Aggregate
>       -> ...
> 
> or a parallel plan like this:
> 
>   Finalize Aggregate
>     -> Gather
>         -> Partial Aggregate
>             -> Join
>                 -> ...
>                 -> ...
> 
> but we currently don't support a combination of both
> 
>   Finalize Aggregate
>     -> Gather
>         -> Join
>             -> Partial Aggregate
>             -> ...
> 
> I wonder if that's actually even possible and what would it take to make
> it work?

I had a prototype of the feature that does affect parallel queries (as well as
partitioned tables and postgres_fdw), but didn't include these parts in the
recent patch versions. The point is that the API to store RelOptInfos can
still change and in such a case I'd have to rebase too much code.

v15 is attached. Actually there are no significant changes relative to v14,
but v14 does not apply to the current master:

error: patch failed: src/test/regress/serial_schedule:140
error: src/test/regress/serial_schedule: patch does not apply

This is interesting because no problem is currently reported at
http://commitfest.cputube.org/

[1] https://www.postgresql.org/message-id/[email protected]

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com



^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* Re: WIP: Aggregation push-down
@ 2020-01-31 21:59  legrand legrand <[email protected]>
  parent: Antonin Houska <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: legrand legrand @ 2020-01-31 21:59 UTC (permalink / raw)
  To: pgsql-hackers

Hello,

Thank you for this great feature !
I hope this will be reviewed/validated soon ;o)

Just a comment:
set enable_agg_pushdown to true;
isn't displayed in EXPLAIN (SETTINGS) syntax.


The following modification seems to fix that: 

src/backend/utils/misc/guc.c
 
 		{"enable_agg_pushdown", PGC_USERSET, QUERY_TUNING_METHOD,
			gettext_noop("Enables aggregation push-down."),
			NULL,
			GUC_EXPLAIN   <<<<--- line Added --->>>>
		},
		&enable_agg_pushdown,
		false,
		NULL, NULL, NULL
	},


then
postgres=# set enable_agg_pushdown = true;
SET
postgres=# explain (settings) select 1;
                QUERY PLAN
------------------------------------------
 Result  (cost=0.00..0.01 rows=1 width=4)
 Settings: enable_agg_pushdown = 'on'
(2 rows)


Regards
PAscal



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread


end of thread, other threads:[~2025-08-28 17:53 UTC | newest]

Thread overview: 270+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11 01:11 Re: [HACKERS] WIP: Aggregation push-down Tomas Vondra <[email protected]>
2020-01-16 15:25 ` Antonin Houska <[email protected]>
2020-01-31 21:59   ` legrand legrand <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox