select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 7.3 / 7.2 / 7.1
Historical version. PostgreSQL 7.3 reached end of support in November 2007. See the current manual for supported releases.

get_defport

Name

get_defport -- get default port [DV]

Synopsis

get_defport()

Parameters

none

Return Type

integer or None

Default port specification

Exceptions

SyntaxError

Too many arguments.

Description

get_defport() returns the current default port specification, or None if the environment variables should be used. Environment variables will not be looked up.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.