!z      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None"#%047;<MSX_?h  tmp-postgresN is the low level configuration necessary for creating a database starting postgres@ and creating a database. There is no validation done on the E. It is recommend that one use the higher level functions such as . which will generate plans that are valid. ^s are used internally but are exposed if the higher level plan generation is not sufficent. tmp-postgresThe output of calling *.  tmp-postgresConnection options  tmp-postgrespostgres process handle  tmp-postgres  is used be * to start the postgres& and then attempt to connect to it. tmp-postgresThe process config for postgres tmp-postgres(Connection options. Used to verify that postgres is ready. tmp-postgres ProcessConfigc contains the configuration necessary for starting a process. It is essentially a stripped down . tmp-postgresEnvironment variables tmp-postgresCommand line arguements tmp-postgresThe  for standard input tmp-postgresThe  for standard output tmp-postgresThe  for standard error tmp-postgresA way to log internal s tmp-postgresA list of failures that can occur when starting. This is not and exhaustive list but covers the errors that the system catches for the user. tmp-postgrespostgresZ failed before a connection succeeded. Most likely this is due to invalid configuration tmp-postgresinitdbV failed. This can be from invalid configuration or using a non-empty data directory tmp-postgrescreatedbW failed. This can be from invalid configuration or the database might already exist. tmp-postgresThe ! was missing info and a complete  could not be created. tmp-postgresInternal events for debugging tmp-postgresKThe first event. This useful for debugging what is actual passed to the initdb, createdb and postgres. tmp-postgres1The second event. Postgres is about to get called  tmp-postgresnThe third event. Postgres started. We are not about to setup a reconnect loop (racing with a process checker)! tmp-postgresmThe fourth event and (possibly all subsequent events). We are looping trying to successfully connect to the postgres process." tmp-postgrespostgres< is not ready until we are able to successfully connect. "^ attempts to connect over and over again and returns after the first successful connection.$ tmp-postgres-Start a process interactively and return the % tmp-postgresStop a . An alias for & tmp-postgres7Start a process and block until it finishes return the .) tmp-postgres Stop the postgres> process after attempting to terminate all the connections.* tmp-postgres Start the postgresq process and block until a successful connection occurs. A separate thread we continously check to see if the postgres process has crashed., tmp-postgres, optionally calls initdb, optionally calls createdb and unconditionally calls postgresQ. Additionally it writes a "postgresql.conf" and does not return until the postgres process is ready. See * for more details.- tmp-postgres Stop the postgres process. See ) for more details.$ tmp-postgres Process name tmp-postgresProcess config& tmp-postgres Process name tmp-postgresProcess config. ! "#$%&'()*+,-.! "#$%& ' ()*+,-None"#%047;<MSX_P9 tmp-postgresLocal Lens' alias: tmp-postgresLocal Lens alias; tmp-postgres;[ holds a description of the temporary folders (if there are any) and includes the final  that can be used with , . See # for an example of how to create a ;.= tmp-postgresFinal . See , for information on s> tmp-postgresThe WL. Used to track if a temporary directory was made as the socket location.? tmp-postgresDThe data directory. Used to track if a temporary directory was used.@ tmp-postgresOThe directory where other temporary directories are created. Usually "/tmp".A tmp-postgres7The high level options for overriding default behavior.C tmp-postgresEExtend or replace any of the configuration used to create a final D tmp-postgresOverride the default W by setting this.E tmp-postgresSOverride the default temporary data directory by passing in 'CPermanent DIRECTORY'F tmp-postgres)A monoid for using an existing port (via   PORT_NUMBER$) or requesting a free port (via a )G tmp-postgresPThe directory used to create other temporary directories. Defaults to "/tmp".H tmp-postgresThe monoidial version of B. Used to combine overrides with defaults when creating a plan.P tmp-postgrespostgres7 process config and corresponding client connection .R tmp-postgresMonoid for the postgres ProcessConfig.S tmp-postgresMonoid for the postgres client connection options.T tmp-postgresThe monoidial version of W=. Used to combine overrides with defaults when creating a W7. The monoid instance treats 'UnixSocket mempty' as  and combines theU tmp-postgres1The monoid for combining IP address configurationV tmp-postgres2The monoid for combining UNIX socket configurationW tmp-postgres4A type for configuring the listening address of the postgres process. postgres can listen on several types of sockets simulatanously but we don't support that behavior. One can either listen on a IP based socket or a UNIX domain socket.X tmp-postgresIP socket type. The G is either an IP address or a host that will resolve to an IP address.Y tmp-postgresUNIX domain socketZ tmp-postgresThe monoidial version of ]=. Used to combine overrides with defaults when creating a ] . The monoid instance treats \ as  and takes the last [ value.[ tmp-postgres.A permanent file that should not be generated.\ tmp-postgres)A temporary file that needs to generated.] tmp-postgresGA type to track whether a file is temporary and needs to be cleaned up.` tmp-postgresThe monoidial version of `=. Used to combine overrides with defaults when creating a `.b tmp-postgresRA monoid for combine environment variables or replacing them. for the maps the & monoid is used. So the last key wins.c tmp-postgres8A monoid for combine command line Args or replacing themd tmp-postgres,A monoid for configuring the standard input e tmp-postgres-A monoid for configuring the standard output f tmp-postgres,A monoid for configuring the standard error g tmp-postgres)A type to help combine command line Args.i tmp-postgresArgs of the form -h foo,  --host=foo and --switch. The key is |ed with value so the key should include the space or equals (as shown in the first two examples respectively). The % monoid is used so the last key wins.j tmp-postgres=Args that appear at the end of the key based Args. The % monoid is used so the last key wins.k tmp-postgresvThe environment variables can be declared to inherit from the running process or they can be specifically added.p tmp-postgres4Combine the current environment (if indicated by m ) with nr tmp-postgresThis convert the g to 't tmp-postgresThe t sets the handles to ,  and D and inherits the environment variables from the calling process.w tmp-postgresTurn a ` into a `%. Fails if any values are missing.x tmp-postgresGet the file path of a ], regardless if it is a ^ or _ type.z tmp-postgresEither create a_ directory or do nothing to a ^ one.| tmp-postgresEither remove a _ directory or do nothing to a ^ one.} tmp-postgres9Create the extra config lines for listening based on the W~ tmp-postgresFMany processes require a "host" flag. We can generate one from the W. tmp-postgresFGet the IP address, host name or UNIX domain socket directory as a  tmp-postgresTurn a T to a W . If the U is % default to "127.0.0.1". If the is a VD optionally create a temporary directory if configured to do so. tmp-postgres?Cleanup the UNIX socket temporary directory if one was created. tmp-postgresTurn a P into a  %. Fails if any values are missing. tmp-postgresTurn a H into a ". Fails if any values are missing. tmp-postgres Create a H9 that sets the command line options of all processes (initdb, postgres and createdb ) using a tmp-postgres*Create all the temporary resources from a A. This also combines the H from  with the  extraConfig passed in. tmp-postgres(Free the temporary resources created by  tmp-postgres Make the ? ^" so it will not get cleaned up. tmp-postgres"Attempt to create a config from a . This is useful if want to create a database owned by a specific user you will also log in as among other use cases. It is possible some S are not supported so don't hesitate to open an issue on github if you find one. tmp-postgres Lens for m tmp-postgres Lens for n tmp-postgres Lens for c tmp-postgres Lens for b tmp-postgres Lens for f tmp-postgres Lens for d tmp-postgres Lens for e tmp-postgres Lens for S tmp-postgres Lens for R tmp-postgres Lens for N tmp-postgres Lens for L tmp-postgres Lens for O tmp-postgres Lens for K tmp-postgres Lens for J tmp-postgres Lens for M tmp-postgres Lens for ? tmp-postgres Lens for = tmp-postgres Lens for > tmp-postgres Lens for E tmp-postgres Lens for C tmp-postgres Lens for F tmp-postgres Lens for D tmp-postgres Lens for j tmp-postgres Lens for iz tmp-postgres!Temporary directory configuration tmp-postgresDirectory pattern tmp-postgresTemporary directory tmp-postgresThe type of socket tmp-postgresMake initdb options tmp-postgresMake createdb options tmp-postgresport tmp-postgres7Whether to listen on a IP address or UNIX domain socket tmp-postgresThe postgres data directory tmp-postgres extraConfig to  after the default configo9:;<=?>@ABGEDCFHIONMLKJPQSRTVUWYXZ\[]_^`afedcbghjiklnmopqrstuvwxyz{|}~ooklnmpghjiqr`afedcbstuvw]_^xyZ\[z{|WYX}~TVUPQSRHIONMLKJABGEDCF;<=?>@:9None"#%047;<MSX_ tmp-postgres,Handle for holding temporary resources, the postgres< process handle and postgres connection information. The / also includes the final plan used to start initdb, createdb and postgres. See  for converting a $ to postgresql connection string. tmp-postgres"Temporary resources and the final . tmp-postgrespostgres+ process handle and the connection options. tmp-postgres Convert a = to a connection string. Alternatively one can access the  using  tmp-postgres Convert a  to a connection  type. tmp-postgresbAccess the data directory. This was either generated or specified explicitly when creating the A tmp-postgresJMake the data directory permanent. Useful for debugging. If you are using  or # this function will not modify the I that is passed for cleanup. You will need to setup your own bracket like  bracket (fmap  ) (either mempty )  tmp-postgresDGet the directory that is used to create other temporary directories tmp-postgresDefault postgres options tmp-postgresPThe default configuration. This will create a database called "postgres" via initdb (it's default behavior). It will create a temporary directory for the data and a temporary directory for a unix socket on a random port. Additionally it will use append the following onto the "postgresql.conf" which is optimized for performance.  shared_buffers = 12MB fsync = off synchronous_commit = off full_page_writes = off log_min_duration_statement = 0 log_connections = on log_disconnections = on client_min_messages = ERROR  also passes the  --no-sync flag to initdb.DIf you would like to customize this behavior you can start with the # and overwrite fields or combine a  with another A using  ().Alternatively you can eschew  altogether, however your postgres' might start and run faster if you use . also sets the K to  t and R to t.ETo append additional lines to "postgresql.conf" file create a custom A like the following.  custom = defaultConfig <> mempty { plan = mempty { postgresConfigFile = [ "wal_level = replica" , "archive_mode = on" , "max_wal_senders = 2" , "fsync = on" , "synchronous_commit = on" ] } } ;Or using the provided lenses and your favorite lens library  custom = defaultConfig &  . N <>~ [ "wal_level = replica" , "archive_mode = on" , "max_wal_senders = 2" , "fsync = on" , "synchronous_commit = on" ] This is common enough there is  which is a helper to do this.As an alternative to using > one could create a config from connections parameters using  tmp-postgres the  with a AC that provides additional "postgresql.conf" lines. Equivalent to qdefaultPostgresConf extra = defaultConfig <> mempty { plan = mempty { postgresConfigFile = extra } }  tmp-postgres?Create zero or more temporary resources and use them to make a A.aThe passed in config is inspected and a generated config is created. The final config is built by  generated  extra  Returns a  that requires cleanup.  should be used with a  and , e.g.   :: A -> ( -> IO a) -> IO (Either  a)  plan f =  ( plan) (either mempty /) $ either (pure . Left) (fmap Right . f)  or just use . If you are calling  you probably want  anyway.Based on the value of D$ a "postgresql.conf" is created with " listen_addresses = 'IP_ADDRESS'  if it is U. If is V then the lines G listen_addresses = '' unix_socket_directories = 'SOCKET_DIRECTORY'  are added. tmp-postgres.Default start behavior. Equivalent to calling  with the  tmp-postgres Stop the postgresM process and cleanup any temporary resources that might have been created. tmp-postgresOnly stop the postgresu process but leave any temporary resources. Useful for testing backup strategies when used in conjunction with  or . tmp-postgres Restart the postgres from  using the prior H tmp-postgres>Reload the configuration file without shutting down. Calls pg_reload_conf(). tmp-postgres1Exception safe database create with options. See  for more details. Calls  even in the face of exceptions. tmp-postgres1Default expectation safe interface. Equivalent to   = withConfig'   tmp-postgresException safe version of  tmp-postgresAttempt to create a A from a x. Useful if you want to create a database owned by a specific user you will also login with among other use cases. tmp-postgres Display a A. tmp-postgres Display a  tmp-postgresextra configuration that is ed last to the generated A. generated <> extra tmp-postgresextraConfiguration. Combined with the generated A. See  for more info tmp-postgresaction continuation tmp-postgresaction continuation.None"#%047;<MSX_] !ABFCDEGHIJKLMNOPQRSTUVZ[\`abcdefghijklmnt]tABFCDEGHIJKLMNOPQRS`abcdefklmnghijZ[\TUV !      !"#$%&'()*+,-./0123456789:;<=>??@ABCDDEFGHIJKLMNOPPQRSTUVWXYZ[\]^__`abcdeefghhijklmnopqrstuvwxyz{|}~     +tmp-postgres-1.9.0.0-B4tHLwC948fIwLrhjeFaCc$Database.Postgres.Temp.Internal.Core&Database.Postgres.Temp.Internal.ConfigDatabase.Postgres.Temp.InternalDatabase.Postgres.TempstartDatabase.Postgres.Temp.ConfigPlan CompletePlancompletePlanLoggercompletePlanInitDbcompletePlanCreateDbcompletePlanPostgrescompletePlanConfigcompletePlanDataDirectoryPostgresProcesspostgresProcessClientOptionspostgresProcessHandleCompletePostgresPlan!completePostgresPlanProcessConfig!completePostgresPlanClientOptionsCompleteProcessConfigcompleteProcessConfigEnvVarscompleteProcessConfigCmdLinecompleteProcessConfigStdIncompleteProcessConfigStdOutcompleteProcessConfigStdErrLogger StartErrorStartPostgresFailed InitDbFailedCreateDbFailedCompletePlanFailedEvent StartPlan StartPostgres WaitForDB TryToConnect waitForDB prettyKeyPair startProcess stopProcessexecuteProcess prettyOptionsterminateConnectionsstopPostgresProcessstartPostgresProcessthrowIfNotSuccess startPlanstopPlan$fExceptionStartError$fPrettyCompleteProcessConfig$fPrettyCompletePostgresPlan$fPrettyPostgresProcess$fPrettyCompletePlan $fShowEvent $fEqEvent $fOrdEvent$fShowStartError$fEqStartError$fOrdStartErrorLens'Lens Resources resourcesPlanresourcesSocketresourcesDataDirresourcesTemporaryDirConfigplan socketClass dataDirectoryporttemporaryDirectorylogger initDbConfigcreateDbConfig postgresPlanpostgresConfigFiledataDirectoryString PostgresPlanpostgresConfigconnectionOptions SocketClassIpSocket UnixSocketCompleteSocketClass CIpSocket CUnixSocket DirectoryType Permanent TemporaryCompleteDirectoryType CPermanent CTemporary ProcessConfigenvironmentVariables commandLinestdInstdOutstdErrCommandLineArgskeyBased indexBasedEnvironmentVariablesinheritspecific prettyMapcompleteEnvironmentVariablestakeWhileInSequencecompleteCommandLineArgs prettyHandlestandardProcessConfigaddErrorContext getOptioncompleteProcessConfig toFilePath makePermanentsetupDirectoryTypermDirIgnoreErrorscleanupDirectoryTypesocketClassToConfigsocketClassToHostFlagsocketClassToHostsetupSocketClasscleanupSocketConfigcompletePostgresPlan completePlan hasInitDb hasCreateDbtoPlan setupConfig cleanupConfigmakeResourcesDataDirPermanentoptionsToConfig optionsToPlanclientOptionsToPlan userToPlan dbnameToPlanhostToSocketClassinheritL specificL commandLineLenvironmentVariablesLstdErrLstdInLstdOutLconnectionOptionsLpostgresConfigLpostgresConfigFileLcreateDbConfigLdataDirectoryStringL initDbConfigLpartialPlanLoggerL postgresPlanLresourcesDataDirLresourcesPlanLresourcesSocketLdataDirectoryLplanLportL socketClassL indexBasedL keyBasedL$fPrettyEnvironmentVariables$fMonoidEnvironmentVariables$fSemigroupEnvironmentVariables$fPrettyCommandLineArgs$fSemigroupCommandLineArgs$fPrettyProcessConfig$fPrettyCompleteDirectoryType$fMonoidDirectoryType$fSemigroupDirectoryType$fPrettyDirectoryType$fPrettyCompleteSocketClass$fMonoidSocketClass$fSemigroupSocketClass$fPrettySocketClass$fPrettyPostgresPlan $fPrettyPlan$fPrettyConfig$fPrettyResources$fGenericEnvironmentVariables$fShowEnvironmentVariables$fEqEnvironmentVariables$fGenericCommandLineArgs$fShowCommandLineArgs$fEqCommandLineArgs$fMonoidCommandLineArgs$fGenericProcessConfig$fEqProcessConfig$fShowProcessConfig$fSemigroupProcessConfig$fMonoidProcessConfig$fShowCompleteDirectoryType$fEqCompleteDirectoryType$fOrdCompleteDirectoryType$fShowDirectoryType$fEqDirectoryType$fOrdDirectoryType$fShowCompleteSocketClass$fEqCompleteSocketClass$fOrdCompleteSocketClass$fGenericCompleteSocketClass$fShowSocketClass$fEqSocketClass$fOrdSocketClass$fGenericSocketClass$fGenericPostgresPlan$fSemigroupPostgresPlan$fMonoidPostgresPlan $fGenericPlan$fSemigroupPlan $fMonoidPlan$fGenericConfig$fSemigroupConfig$fMonoidConfigDB dbResourcesdbPostgresProcesstoConnectionStringtoConnectionOptionstoDataDirectorymakeDataDirPermanenttoTemporaryDirectorydefaultPostgresConfig defaultConfigdefaultPostgresConf startConfigstop stopPostgresrestart reloadConfig withConfigwith withRestartoptionsToDefaultConfigprettyPrintConfig prettyPrintDB $fPrettyDBprocess-1.6.3.0System.Process.Common CreateProcessbaseGHC.IO.Handle.TypesHandle ProcessHandleSystem.ProcesswaitForProcessGHC.IO.ExceptionExitCode GHC.MaybeJustNothing/postgres-options-0.2.0.0-FEfVRHnVs2pG3RBcj4OWRP"Database.PostgreSQL.Simple.OptionsOptionsGHC.BasememptyStringData.Semigroup.InternalDualmappendGHC.IO.Handle.FDstdinstdoutstderr<>pureControl.Exception.Basebracket