Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 14:48:22 -0500 (EST)
From:      Dan Langille <dan@langille.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        girgen@partitur.se
Subject:   ports/34348: postgresql doesn't use long version of command line options
Message-ID:  <200201271948.g0RJmMf11703@xeon.unixathome.org>

next in thread | raw e-mail | index | archive | help

>Number:         34348
>Category:       ports
>Synopsis:       postgresql doesn't use long version of command line options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 27 11:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dan Langille
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD xeon.unixathome.org 4.4-STABLE FreeBSD 4.4-STABLE #2: Thu Sep 20 23:42:24 EDT 2001 root@xeon.unixathome.org:/usr/obj/usr/src/sys/XEON i386

>Description:
	
>How-To-Repeat:

$ pg_dump --clean FreshPorts2TestLists > FreshPorts2TestLists.clean.sql
$ pg_dump FreshPorts2TestLists > FreshPorts2TestLists.sql
$ ls -l FreshPorts2TestLists.clean.sql FreshPorts2TestLists.sql
-rw-r--r-- 1 dan dan 6189700 Jan 27 14:12 FreshPorts2TestLists.clean.sql
-rw-r--r-- 1 dan dan 6189700 Jan 27 14:13 FreshPorts2TestLists.sql
$ diff FreshPorts2TestLists.clean.sql FreshPorts2TestLists.sql
$

Similar results occur with the -a/--data-only switch.
>Fix:

asmodai had this to say:

FreeBSD has no getopt long stuff
we have devel/libgnugetopt for that

src/bin/pg_dump/pg_dump.c contains this:

#ifdef HAVE_GETOPT_LONG
        puts(
        "  -a, --data-only          dump out only the data, not the schema\n"
                 "  -b, --blobs              dump out blob data\n"
           "  -c, --clean              clean (drop) schema prior to create\n"
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201271948.g0RJmMf11703>