You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Valentin Lab 2c409e26ce fix: [base] accept ``20.10`` docker version as valid 8 months ago
..
actions fix: [postgres] display service name upon error when not find containers and running ``sql`` action 9 months ago
build fix: [postgres] add required dependency of ``pgm`` 1 year ago
hooks new: [postgres] allow relation options ``encoding``, ``lc-collate``, ``lc-ctype``, ``template`` 2 years ago
lib new: [postgres] allow relation options ``encoding``, ``lc-collate``, ``lc-ctype``, ``template`` 2 years ago
resources/bin new: [postgres] add automatic backup every hours 5 years ago
README.org new: doc: [postgres] added some docs about relation's option 1 year ago
metadata.yml chg: [postgres] change ``backup`` relation from ``optional`` to is ``recommended`` 3 years ago

README.org

Usage

By default, postgres charm won't need any options in general.

However, services using postgres through relations will typically want to set some options (if the default behavior is not enough).

myservice:
  relations:
    postgres-database:
      postgres:
        dbname: foo     ## default uses the name of querying service (here: 'myservice')
        user: mydbuser  ## default uses the name of querying service (here: 'myservice')
        password: bar   ## if not set, a random password will be generated
        extensions:     ## default is empty list
          - unaccent
          - pg_trgm
        init-sql: !bash-stdout | ## default is empty
          zcat "$BASE_CHARM_PATH/src/init.sql.gz"