> In phpPgAdmin, I need to know if the backend supports tablespaces or > not. What is the most reliable way of detecting that the backend is the > win32 native version and hence does not support tablespaces? Version > string info? > > Or alternatively, what is the most direct way of detecting its presence > or absence, regardless of backend OS?
Check the uptime...if it's greater than 7 days, it's not win32 :). Seriously, you can check the version() string. If it's got mingw init, it's win32 native. Merlin ------------------------------------------------------------------------ ---------------------------- ---- PostgreSQL 7.5devel on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.2.3 mingw special 20030504 -1) ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster