http://npgsql.projects.postgresql.org/docs/manual/UserManual.html
(scroll down to the "Connection String Parameters" section)
Whatever appears in your .zig file will be sent to PostgreSQL. So, to
use the example.zig file, yours can now look like:
--8<-----------------------
[connection]
; Your PostgreSQL server.
server = localhost
; Your PostgreSQL server's port.
port = 5432
; Your PostGIS database.
database = yourdb
; Your PostGIS user.
user = psqluser
; Your PostGIS password.
password = psqluserpassword
; NEW - add the connection timeout here - the amount of time allowed
to make an initial connection to the PostgreSQL server (time in
seconds).
timeout = 30
; NEW - add the command timeout here - the amount of time allowed for
a query to execute (time in seconds).
commandtimeout = 60
----------------------->8--
So what does this mean for people experiencing the dreaded "canceling
statement due to user request" while the "Add PostGIS Data" form is
loading? Simply adjust the commandtimeout parameter to allow more
time for queries to return the metadata for you PostGIS tables.
Please let us know your experiences.
Good luck!
-Abe