doc: fix pg_restore_extended_stats() example syntax

Started by Chao Li10 days ago4 messageshackers
Jump to latest
#1Chao Li
li.evan.chao@gmail.com

Hi,

I am testing pg_restore_extended_stats(), and noticed an mistake in the doc:

```
SELECT pg_restore_extended_stats(
'schemaname', 'tab_schema',
'relname', 'tab_name',
'statistics_schemaname', 'stats_schema',
'statistics_name', 'stats_name',
'inherited', false,
'n_distinct', '[{"attributes" : [2,3], "ndistinct" : 4}]'::pg_ndistinct); <== “);” should be “,"
'dependencies', '{"2 => 1": 1.000000, "2 => -1": 1.000000, "2 => -2": 1.000000}'::pg_dependencies,
'exprs', '[
```

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

Attachments:

v1-0001-doc-fix-pg_restore_extended_stats-example-syntax.patchapplication/octet-stream; name=v1-0001-doc-fix-pg_restore_extended_stats-example-syntax.patch; x-unix-mode=0644Download+1-2
#2Michael Paquier
michael@paquier.xyz
In reply to: Chao Li (#1)
Re: doc: fix pg_restore_extended_stats() example syntax

On Fri, May 15, 2026 at 05:31:55PM +0800, Chao Li wrote:

I am testing pg_restore_extended_stats(), and noticed an mistake in
the doc:

Yep, will fix later. Thanks for the report.
--
Michael

#3Michael Paquier
michael@paquier.xyz
In reply to: Michael Paquier (#2)
Re: doc: fix pg_restore_extended_stats() example syntax

On Fri, May 15, 2026 at 08:23:39PM +0900, Michael Paquier wrote:

Yep, will fix later. Thanks for the report.

Done as of 4111b91ab3d5.
--
Michael

#4Chao Li
li.evan.chao@gmail.com
In reply to: Michael Paquier (#3)
Re: doc: fix pg_restore_extended_stats() example syntax

On May 17, 2026, at 07:11, Michael Paquier <michael@paquier.xyz> wrote:

On Fri, May 15, 2026 at 08:23:39PM +0900, Michael Paquier wrote:

Yep, will fix later. Thanks for the report.

Done as of 4111b91ab3d5.
--
Michael

Thanks for pushing.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/