pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feedUsage of pg_waldump
4+ messages / 4 participants
[nested] [flat]
* Usage of pg_waldump
@ 2018-05-01 07:41 Dang Minh Huong <kakalot49@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Dang Minh Huong @ 2018-05-01 07:41 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>; pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Hi,
I am confused with the Usage of pg_waldump (or pg_xlogdump).
The syntax is known as,
pg_waldump [OPTION]... [STARTSEG [ENDSEG]]
Mean that, it could work with no arguments.
But the "no arguments specified" ERROR will be returned in that case.
$ pg_waldump
pg_waldump: no arguments specified
Try "pg_waldump --help" for more information.
I wonder it should be,
pg_waldump { OPTION... [STARTSEG [ENDSEG]] } | { [OPTION]... STARTSEG [ENDSEG] }
Have any comments?
Thanks,
---
Dang Minh Huong
---
Phần mềm Avast antivirus đã kiểm tra virus cho email này.
https://www.avast.com/antivirus
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Usage of pg_waldump
@ 2018-05-01 16:26 Andres Freund <andres@anarazel.de>
parent: Dang Minh Huong <kakalot49@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Andres Freund @ 2018-05-01 16:26 UTC (permalink / raw)
To: Dang Minh Huong <kakalot49@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>; pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Hi,
On 2018-05-01 16:41:04 +0900, Dang Minh Huong wrote:
> The syntax is known as,
>
> pg_waldump [OPTION]... [STARTSEG [ENDSEG]]
>
> Mean that, it could work with no arguments.
> But the "no arguments specified" ERROR will be returned in that case.
>
> $ pg_waldump
> pg_waldump: no arguments specified
> Try "pg_waldump --help" for more information.
>
> I wonder it should be,
>
> pg_waldump { OPTION... [STARTSEG [ENDSEG]] } | { [OPTION]... STARTSEG [ENDSEG] }
>
> Have any comments?
To me that doesn't seem like an improvement, looks a good chunk more
complicated. You'll get the error and the docs also tell you that some
arguments are needed.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Usage of pg_waldump
@ 2018-05-01 16:39 David G. Johnston <david.g.johnston@gmail.com>
parent: Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 4+ messages in thread
From: David G. Johnston @ 2018-05-01 16:39 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Dang Minh Huong <kakalot49@gmail.com>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>; pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
On Tue, May 1, 2018 at 9:26 AM, Andres Freund <andres@anarazel.de> wrote:
> Hi,
>
> On 2018-05-01 16:41:04 +0900, Dang Minh Huong wrote:
> > The syntax is known as,
> >
> > pg_waldump [OPTION]... [STARTSEG [ENDSEG]]
> >
> > Mean that, it could work with no arguments.
> > But the "no arguments specified" ERROR will be returned in that case.
> >
> > $ pg_waldump
> > pg_waldump: no arguments specified
> > Try "pg_waldump --help" for more information.
> >
> > I wonder it should be,
> >
> > pg_waldump { OPTION... [STARTSEG [ENDSEG]] } | { [OPTION]... STARTSEG
> [ENDSEG] }
> >
> > Have any comments?
>
> To me that doesn't seem like an improvement, looks a good chunk more
> complicated. You'll get the error and the docs also tell you that some
> arguments are needed.
>
Reading the v10 docs...
note: there is either an extra space between the two closing brackets or a
missing space before startseg
I suppose it would help to understand why an argument is required -
providing a startseg implicitly sets path and timeline but both of those
have defaults and so even without a startseg those two aren't required.
Since no other options are required when startseg is specified it doesn't
make sense that there would be others required when it is not.
IOW, the error message in the no-arg command invocation seems incorrect.
David J.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Usage of pg_waldump
@ 2018-11-13 12:52 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2018-11-13 12:52 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; Andres Freund <andres@anarazel.de>; +Cc: Dang Minh Huong <kakalot49@gmail.com>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>; pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
On 01/05/2018 18:39, David G. Johnston wrote:
> note: there is either an extra space between the two closing brackets
> or a missing space before startseg
I have committed a fix for this.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2018-11-13 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 07:41 Usage of pg_waldump Dang Minh Huong <kakalot49@gmail.com>
2018-05-01 16:26 ` Andres Freund <andres@anarazel.de>
2018-05-01 16:39 ` David G. Johnston <david.g.johnston@gmail.com>
2018-11-13 12:52 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox