doc: fix pg_restore_extended_stats() example syntax

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Subject: doc: fix pg_restore_extended_stats() example syntax
Date: 2026-05-15 09:31:55
Message-ID: 8A72720A-55AC-4D41-B9DF-5610307600E6@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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/

Attachment Content-Type Size
v1-0001-doc-fix-pg_restore_extended_stats-example-syntax.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-05-15 09:36:21 Re: [PATCH] Fix psql tab completion for REPACK boolean options
Previous Message Amit Kapila 2026-05-15 09:23:30 Re: Bound memory usage during manual slot sync retries