Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions R/dbConnect_PqDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@
#' set to [Sys.timezone()] or `""`.
#' This setting does not change the time values returned, only their display.
#' @param conn Connection to disconnect.
#' @section Default host:
#' If neither the `host` argument, the `PGHOST` environment variable, nor a service sets the host,
#' libpq connects to `localhost` on Windows.
#' On Unix-like systems, it connects to a Unix-domain socket in the directory compiled into the libpq that is loaded at run time.
#' That directory is `/var/run/postgresql` in the libpq packaged by some distributions, e.g. Debian and Ubuntu,
#' but `/tmp` in a libpq built from the upstream sources,
#' such as a PostgreSQL installed from source or some third-party distributions.
#' If the server's socket lives elsewhere, `dbConnect()` fails with an error such as
#' `connection to server on socket "/tmp/.s.PGSQL.5432" failed`.
#' Pass the socket directory as `host`, for instance `host = "/var/run/postgresql"`,
#' or set the `PGHOST` environment variable, for instance in `~/.Renviron`.
#' See [postgresHasDefault()] for checking whether the defaults lead to a working connection.
#'
#' @section Schemas:
#' To use the tables in a schema other than `public` without naming the schema,
#' put it on the search path with the libpq parameter `options`,
Expand Down
15 changes: 15 additions & 0 deletions man/Postgres.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.