Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#209 db_export.php postgres version handling

CVS
closed-fixed
Russell Smith
Dumps (18)
5
2005-02-01
2004-11-13
Russell Smith
No

db_export.php:74 has the following regex
preg_match("/(\d+(?:\.\d+)?)(?:\.\d+)?$/", exec($exe .
" --version"), $version);

It however cannot parse
pg_dump (PostgreSQL) 8.0.0beta4

which is the beta version of postgres. hence you
cannot get an output from a non release version.
$version[1] = 4, from beta 4.

It does not expect to have any text after the last
version number, and the betas do not follow this ideal.

So you cannot dump a table from pg 7.4 betas, or pg 8.0
betas.

The regex needs to be adjusted to be able to return the
correct value, ever for beta and release candidate
versions of pg.

Discussion

  • Russell Smith
    Russell Smith
    2005-02-01

    • assigned_to: nobody --> mr-russ
     
  • Russell Smith
    Russell Smith
    2005-02-01

    Logged In: YES
    user_id=361841

    This issue has been resolved and is currently fixed in CVS. If
    you wish to acquire the fix, please download a nightly snapshot:

    http://phppgadmin.sourceforge.net/

    Note that you may have to wait up to 24 hours for the latest CVS
    changes to appear in the snapshot.

     
  • Russell Smith
    Russell Smith
    2005-02-01

    • status: open --> closed-fixed