mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 02:24:08 +00:00
Mute notices from postgresql during setup
They are mostly warnings about tables that do not exists. This is intentional and would only confuse the casual user.
This commit is contained in:
@@ -185,6 +185,10 @@ function runSQLScript($sScript, $bfatal = true, $bVerbose = false, $bIgnoreError
|
|||||||
fail('unable to start pgsql');
|
fail('unable to start pgsql');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$bVerbose) {
|
||||||
|
fwrite($ahPipes[0], "set client_min_messages to WARNING;");
|
||||||
|
}
|
||||||
|
|
||||||
while (strlen($sScript)) {
|
while (strlen($sScript)) {
|
||||||
$iWritten = fwrite($ahPipes[0], $sScript);
|
$iWritten = fwrite($ahPipes[0], $sScript);
|
||||||
if ($iWritten <= 0) break;
|
if ($iWritten <= 0) break;
|
||||||
|
|||||||
@@ -440,7 +440,6 @@ if ($aCMDResult['load-data'] || $aCMDResult['all']) {
|
|||||||
// PGSQL_EMPTY_QUERY, PGSQL_COMMAND_OK, PGSQL_TUPLES_OK,
|
// PGSQL_EMPTY_QUERY, PGSQL_COMMAND_OK, PGSQL_TUPLES_OK,
|
||||||
// PGSQL_COPY_OUT, PGSQL_COPY_IN, PGSQL_BAD_RESPONSE,
|
// PGSQL_COPY_OUT, PGSQL_COPY_IN, PGSQL_BAD_RESPONSE,
|
||||||
// PGSQL_NONFATAL_ERROR and PGSQL_FATAL_ERROR
|
// PGSQL_NONFATAL_ERROR and PGSQL_FATAL_ERROR
|
||||||
echo 'Query result ' . $i . ' is: ' . $resultStatus . "\n";
|
|
||||||
if ($resultStatus != PGSQL_COMMAND_OK && $resultStatus != PGSQL_TUPLES_OK) {
|
if ($resultStatus != PGSQL_COMMAND_OK && $resultStatus != PGSQL_TUPLES_OK) {
|
||||||
$resultError = pg_result_error($hPGresult);
|
$resultError = pg_result_error($hPGresult);
|
||||||
echo '-- error text ' . $i . ': ' . $resultError . "\n";
|
echo '-- error text ' . $i . ': ' . $resultError . "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user