Sign inSign up

clover/postgres

By clover

Updated 4 months ago

PostGRE SQL

Image
1

5.0K

clover/postgres repository overview

PostGRE SQL docker image

The world's most advanced open source object-relational database system

This image is based on official postgresql package for Ubuntu and is built on top of clover/common.

Enviroment variables
NameDefault valueDescription
PUIDnot setdesired user id of the process owner
PGIDnot setdesired group id of the process pwner (primary group of the PUID user)
PUSERnot setdesired PUID user name
PGROUPnot setdesired PGID group name
CHOWNnot setspace-separated list of directories to change ownership to PUID/PGID during container startup
CRONnot set (0)will start cron inside the container if set to 1
TZ / TIMEZONEnot set (UTC)desired container timezone
PGDATA/var/lib/postgresqllocation for the database cluster (data directory)
POSTGRES_INITDB_AUTHnot setdefault authentication method for local connections
POSTGRES_INITDB_AUTH_HOSTmd5 (<=17), scram-sha-256 (=17)default authentication method for local TCP/IP connections
POSTGRES_INITDB_AUTH_LOCALtrustdefault authentication method for local-socket connections
POSTGRES_INITDB_ENCODINGnot set (UTF8)default encoding for new databases
POSTGRES_INITDB_ALLOW_GROUP_ACCESSnot set (0)allow group read/execute on data directory
POSTGRES_INITDB_ICU_LOCALE (>=15)not setICU locale for new databases
POSTGRES_INITDB_ICU_RULES (>=16)not setadditional ICU collation rules for new databases
POSTGRES_INITDB_LOCALEnot set (C.UTF-8)default locale for new databases
POSTGRES_INITDB_LC_COLLATEnot setdefault locale for collate category
POSTGRES_INITDB_LC_CTYPEnot setdefault locale for ctype category
POSTGRES_INITDB_LC_MESSAGESnot setdefault locale for messages category
POSTGRES_INITDB_LC_MONETARYnot setdefault locale for monetary category
POSTGRES_INITDB_LC_NUMERICnot setdefault locale for numeric category
POSTGRES_INITDB_LC_TIMEnot setdefault locale for time category
POSTGRES_INITDB_BUILTIN_LOCALE (>=17)not setbuiltin locale name for new databases
POSTGRES_INITDB_LOCALE_PROVIDER (>=15)not setdefault locale provider for new databases (libc
POSTGRES_INITDB_PWFILE/etc/postgresql/pwfilepassword file for the new superuser
POSTGRES_INITDB_TEXT_SEARCH_CONFIGnot set (english)default text search configuration
POSTGRES_INITDB_USERNAMEpostgresdatabase superuser name
POSTGRES_INITDB_WALDIRnot set ({PGDATA}/pg_wal/)location for the write-ahead log directory
POSTGRES_INITDB_WAL_SEGSIZEnot setsize of WAL segments (in megabytes)
POSTGRES_INITDB_OPTIONSnot setspace separated list of default settings for server parameters in KEY=VALUE format
POSTGRES_INITDB_DEBUGnot setgenerate lots of debugging output
POSTGRES_INITDB_DISCARD_CACHESnot setset debug_discard_caches=1
POSTGRES_INITDB_DATA_CHECKSUMSnot setuse data page checksums
POSTGRES_INITDB_SAMPLE_DIRnot set (/usr/share/postgresql/{version})where to find the input files
POSTGRES_INITDB_NO_CLEANnot setdo not clean up after errors
POSTGRES_INITDB_NO_SYNCnot setdo not wait for changes to be written safely to disk
POSTGRES_INITDB_NO_SYNC_DATA_FILES (>=17)not setdo not sync files within database directories
POSTGRES_INITDB_NO_INSTRUCTIONS (>=14)1do not print instructions for next steps
POSTGRES_INITDB_SYNC_METHOD (>=17)not setset method for syncing files to disk (fsync
POSTGRES_SHARED_BUFFERSnot setnumber of shared buffers
POSTGRES_OPTIONSnot setspace separated list of runtime server parameters in KEY=VALUE format
POSTGRES_DEBUG_LEVELnot setdebugging level (1 .. 5)
POSTGRES_EUROPIAN_DATEnot setuse European date input format (DMY)
POSTGRES_NO_FSYNCnot setturn fsync off
POSTGRES_LISTEN_HOST*host name or IP address to listen on
POSTGRES_TCPnot setenable TCP/IP connections (deprecated)
POSTGRES_SOCKET_DIRnot setUnix-domain socket location
POSTGRES_SSLnot setenable SSL connections
POSTGRES_MAX_CONNECT128maximum number of allowed connections
POSTGRES_LISTEN_PORT5432port number to listen on
POSTGRES_STATSnot setshow statistics after each query
POSTGRES_WORK_MEMnot setset amount of memory for sorts (in kilobytes)
POSTGRES_FORBID_PLAN_TYPES (>=14)not setforbid use of some plan types [siobtnmh] **
POSTGRES_NO_SHM_REINIT (>=14)not set
POSTGRES_NO_SYS_TABLE_PROTECTION (>=14)not setallow system table structure changes
POSTGRES_NO_SYS_INDEXES (>=14)not setdisable system indexes
POSTGRES_QUERY_STATS (>=14)not setshow timings after each query (pa
POSTGRES_STOP_BACKENDS (>=14)not setsend SIGSTOP (<=16) / SIGABRT (>=17) to all backend processes if one dies
POSTGRES_WAIT_SEC (>=14)not setwait NUM seconds to allow attach from a debugger
* POSTGRES_INITDB_SYNC_METHOD (>=17) - set method for syncing files to disk

One of the following:

  • fsync - write normally, then fsync() (default)
  • fdatasync - write normally, then fdatasync()
  • open_sync - open file with O_SYNC
  • open_datasync - open file with O_DSYNC
** POSTGRES_FORBID_PLAN_TYPES (>=14) - forbid use of some plan types

Any combination of the following:

  • s - sequential scan
  • i - index scan
  • o - index-only scan
  • b - bitmap index scan
  • t - tuple ID scan
  • n - nested loop joins
  • m - merge joins
  • h - hash joins
*** POSTGRES_QUERY_STATS (>=14) - show timings after each query

One of the following:

  • pa - parse/plan/execution timing (aggregate-style reporting)
  • pl - per-phase (parse + plan + execution breakdown)
  • ex - execution-only timing
Supported platforms
  • linux/amd64;
  • linux/arm64/v8;
  • linux/ppc64le;

Tag summary

Content type

Image

Digest

sha256:5ffdbb8d3

Size

42.7 MB

Last updated

4 months ago

docker pull clover/postgres