pg_dump[all] 8.4 doesn't support -d option anymore. Use --inserts instead. Reported...
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Oct 2009 17:30:13 +0000 (18:30 +0100)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Oct 2009 17:30:13 +0000 (18:30 +0100)
dbexport.php

index d7dce3b02e7b96365e999cfd004e3dfc09665448..3b69e130bc6bb57bd13c3b5e94edcdb78c8f6e52 100644 (file)
                switch ($_REQUEST['what']) {
                        case 'dataonly':
                                $cmd .= ' -a';
-                               if ($_REQUEST['d_format'] == 'sql') $cmd .= ' -d';
+                               if ($_REQUEST['d_format'] == 'sql') $cmd .= ' --inserts';
                                elseif (isset($_REQUEST['d_oids'])) $cmd .= ' -o';
                                break;
                        case 'structureonly':
                                if (isset($_REQUEST['s_clean'])) $cmd .= ' -c';
                                break;
                        case 'structureanddata':
-                               if ($_REQUEST['sd_format'] == 'sql') $cmd .= ' -d';
+                               if ($_REQUEST['sd_format'] == 'sql') $cmd .= ' --inserts';
                                elseif (isset($_REQUEST['sd_oids'])) $cmd .= ' -o';
                                if (isset($_REQUEST['sd_clean'])) $cmd .= ' -c';
                                break;