agora inbox for [email protected]  
help / color / mirror / Atom feed
Disabling memory display in EXPLAIN ANALYZE
270+ messages / 3 participants
[nested] [flat]

* Disabling memory display in EXPLAIN ANALYZE
@ 2018-04-02 20:51  Andres Freund <[email protected]>
  0 siblings, 1 reply; 270+ messages in thread

From: Andres Freund @ 2018-04-02 20:51 UTC (permalink / raw)
  To: pgsql-hackers; Simon Riggs <[email protected]>

Hi,

The, now reverted, MERGE patch used EXPLAIN (ANALYZE, COSTS OFF, TIMING
OFF) on a few queries. That doesn't seem like a bad idea when it's
interesting to display the plan and run a query without (interesting)
results.  Otherwise one has to duplicate the query.

But right now it triggers differences like:

***************
*** 887,893 ****
           Hash Cond: (s.sid = t_1.tid)
           ->  Seq Scan on source s (actual rows=3 loops=1)
           ->  Hash (actual rows=3 loops=1)
!                Buckets: 1024  Batches: 1  Memory Usage: 9kB
                 ->  Seq Scan on target t_1 (actual rows=3 loops=1)
   Trigger merge_ard: calls=1
   Trigger merge_ari: calls=1
--- 887,893 ----
           Hash Cond: (s.sid = t_1.tid)
           ->  Seq Scan on source s (actual rows=3 loops=1)
           ->  Hash (actual rows=3 loops=1)
!                Buckets: 1024  Batches: 1  Memory Usage: 5kB
                 ->  Seq Scan on target t_1 (actual rows=3 loops=1)
   Trigger merge_ard: calls=1
   Trigger merge_ari: calls=1

***************
*** 1320,1330 ****
           Merge Cond: (t_1.a = s.a)
           ->  Sort (actual rows=50 loops=1)
                 Sort Key: t_1.a
!                Sort Method: quicksort  Memory: 27kB
                 ->  Seq Scan on ex_mtarget t_1 (actual rows=50 loops=1)
           ->  Sort (actual rows=100 loops=1)
                 Sort Key: s.a
!                Sort Method: quicksort  Memory: 33kB
                 ->  Seq Scan on ex_msource s (actual rows=100 loops=1)
  (15 rows)
  
--- 1320,1330 ----
           Merge Cond: (t_1.a = s.a)
           ->  Sort (actual rows=50 loops=1)
                 Sort Key: t_1.a
!                Sort Method: quicksort  Memory: 19kB
                 ->  Seq Scan on ex_mtarget t_1 (actual rows=50 loops=1)
           ->  Sort (actual rows=100 loops=1)
                 Sort Key: s.a
!                Sort Method: quicksort  Memory: 24kB
                 ->  Seq Scan on ex_msource s (actual rows=100 loops=1)
  (15 rows)

i.e. memory consumption differs between environments. Which isn't
surprising.

I wonder if we could disable the display with a separate switch or tie
it to !'COSTS OFF && TIMING OFF' or such?

Greetings,

Andres Freund




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

* Re: Disabling memory display in EXPLAIN ANALYZE
@ 2018-04-02 21:01  Stephen Frost <[email protected]>
  parent: Andres Freund <[email protected]>
  0 siblings, 1 reply; 270+ messages in thread

From: Stephen Frost @ 2018-04-02 21:01 UTC (permalink / raw)
  To: Andres Freund <[email protected]>; +Cc: pgsql-hackers; Simon Riggs <[email protected]>

Greetings,

* Andres Freund ([email protected]) wrote:
> i.e. memory consumption differs between environments. Which isn't
> surprising.
> 
> I wonder if we could disable the display with a separate switch or tie
> it to !'COSTS OFF && TIMING OFF' or such?

Yeah, I agree with having these suppressed when we're running the
regression tests.  I don't particularly care for having them suppressed
under either costs or timing off though, as those are really pretty
specific and independnet flags.  Perhaps what we need is a flag that
says 'regression mode'...

Thanks!

Stephen


Attachments:

  [application/pgp-signature] signature.asc (819B, ../../[email protected]/2-signature.asc)
  download

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

* Re: Disabling memory display in EXPLAIN ANALYZE
@ 2018-04-02 22:03  Andres Freund <[email protected]>
  parent: Stephen Frost <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Andres Freund @ 2018-04-02 22:03 UTC (permalink / raw)
  To: Stephen Frost <[email protected]>; +Cc: pgsql-hackers; Simon Riggs <[email protected]>

Hi,

On 2018-04-02 17:01:08 -0400, Stephen Frost wrote:
> * Andres Freund ([email protected]) wrote:
> > i.e. memory consumption differs between environments. Which isn't
> > surprising.
> > 
> > I wonder if we could disable the display with a separate switch or tie
> > it to !'COSTS OFF && TIMING OFF' or such?
> 
> Yeah, I agree with having these suppressed when we're running the
> regression tests.  I don't particularly care for having them suppressed
> under either costs or timing off though, as those are really pretty
> specific and independnet flags.

We already put a number of loosely related things in there, so I don't
think that'd be that weird to continue along those lines.


> Perhaps what we need is a flag that says 'regression mode'...

DWIM mode? reproducible mode?

Greetings,

Andres Freund




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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

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

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


--pbl4mx6qlbtkw6pf--





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

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

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

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign tables, and partitioned tables.")));
 
 					/*
 					 * CREATE STATISTICS will influence future execution plans
-- 
2.39.5


--pbl4mx6qlbtkw6pf--





^ permalink  raw  reply  [nested|flat] 270+ messages in thread

* [PATCH] CREATE STATISTICS: Fix error message
@ 2025-08-28 17:53  Álvaro Herrera <[email protected]>
  0 siblings, 0 replies; 270+ messages in thread

From: Álvaro Herrera @ 2025-08-28 17:53 UTC (permalink / raw)

---
 src/backend/tcop/utility.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 25fe3d58016..7f5076d2c1a 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1883,7 +1883,8 @@ ProcessUtilitySlow(ParseState *pstate,
 					if (!IsA(rel, RangeVar))
 						ereport(ERROR,
 								(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-								 errmsg("only a single relation is allowed in CREATE STATISTICS")));
+								 errmsg("cannot create statistics on specified relation"),
+								 errdetail("CREATE STATISTICS only supports tables, materialized views, foreign 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 --
2018-04-02 20:51 Disabling memory display in EXPLAIN ANALYZE Andres Freund <[email protected]>
2018-04-02 21:01 ` Stephen Frost <[email protected]>
2018-04-02 22:03   ` Andres Freund <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] CREATE STATISTICS: Fix error message Álvaro Herrera <[email protected]>
2025-08-28 17:53 [PATCH] 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