From: | Surafel Temesgen <surafel3000(at)gmail(dot)com> |
---|---|
To: | David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
Cc: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Dmitry Dolgov <9erthalion6(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_dump multi VALUES INSERT |
Date: | 2019-01-02 12:50:24 |
Message-ID: | CALAY4q87JrXD6kVETRb87QbRPzxZ_UU+nzpBmgc2L41TRG_sAg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
Thank you for looking at it
On Mon, Dec 31, 2018 at 12:38 PM David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
wrote:
> Just looking at the v5 patch, it seems not to handle 0 column tables
> correctly.
>
> For example:
>
> # create table t();
> # insert into t default values;
> # insert into t default values;
>
> $ pg_dump --table t --inserts --insert-multi=100 postgres > dump.sql
>
> # \i dump.sql
> [...]
> INSERT 0 1
> psql:dump.sql:35: ERROR: syntax error at or near ")"
> LINE 1: );
> ^
>
The attach patch contain a fix for it
Regards
Surafel
Attachment | Content-Type | Size |
---|---|---|
multi_values_inserts_dum_v6.patch | text/x-patch | 11.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2019-01-02 12:54:14 | Re: [HACKERS] REINDEX CONCURRENTLY 2.0 |
Previous Message | Mark | 2019-01-02 12:27:18 | Re: Query planner / Analyse statistics bad estimate rows=1 with maximum statistics 10000 on PostgreSQL 10.2 |