function pgsqlRunPartitionScript was missing global $aCMDResult
setup was failing with
...
PHP Notice: Undefined variable: aCMDResult in /home/roles/nominatim/app/Nominatim/build/utils/setup.php on line 768
NOTICE: type "nearplace" does not exist, skipping
..
ERROR: relation "location_area_large_0" already exists
ERROR: pgsql returned with error code (3)
pgsql returned with error code (3)
Command exited with non-zero status 255
function pgsqlRunPartitionScript($sTemplate)
{
+ global $aCMDResult;
$oDB =& getDB();
$sSQL = 'select distinct partition from country_name';