!      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None"#%047;<MSX_7 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-postgresc 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-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_N9 tmp-postgresLocal Lens' alias: tmp-postgresLocal Lens alias; tmp-postgres7The high level options for overriding default behavior.= tmp-postgresEExtend or replace any of the configuration used to create a final > tmp-postgresOverride the default U by setting this.? tmp-postgresROverride the default temporary data directory by passing in 'Permanent DIRECTORY'@ tmp-postgres_A monoid for using an existing port (via 'Just PORT_NUMBER') or requesting a free port (via a )A tmp-postgresA[ 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 A.C tmp-postgresFinal . See , for information on sD tmp-postgresThe UL. Used to track if a temporary directory was made as the socket location.E tmp-postgresDThe data directory. Used to track if a temporary directory was used.F tmp-postgresThe monoidial version of B. Used to combine overrides with defaults when creating a plan.N tmp-postgrespostgres7 process config and corresponding client connection .P tmp-postgresMonoid for the postgres ProcessConfig.Q tmp-postgresMonoid for the postgres client connection options.R tmp-postgresThe monoidial version of U=. Used to combine overrides with defaults when creating a U8. The monoid instance treats 'PUnixSocket mempty' as  and combines theS tmp-postgres1The monoid for combining IP address configurationT tmp-postgres2The monoid for combining UNIX socket configurationU 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.V tmp-postgresIP socket type. The G is either an IP address or a host that will resolve to an IP address.W tmp-postgresUNIX domain socketX tmp-postgresThe monoidial version of [=. Used to combine overrides with defaults when creating a [ . The monoid instance treats Z as  and takes the last Y value.Y tmp-postgres.A permanent file that should not be generated.Z 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 .` tmp-postgresRA monoid for combine environment variables or replacing them. for the maps the & monoid is used. So the last key wins.a tmp-postgres=A monoid for combine command line arguments or replacing themb tmp-postgres,A monoid for configuring the standard input c tmp-postgres-A monoid for configuring the standard output d tmp-postgres,A monoid for configuring the standard error e tmp-postgres.A type to help combine command line arguments.g tmp-postgresArguments 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.h tmp-postgresGArguments that appear at the end of the key based arguments. The % monoid is used so the last key wins.i tmp-postgresvThe environment variables can be declared to inherit from the running process or they can be specifically added.n tmp-postgres4Combine the current environment (if indicated by k ) with lp tmp-postgresThis convert the e to 'r tmp-postgresThe r sets the handles to ,  and D and inherits the environment variables from the calling process.u tmp-postgresTurn a ^ into a %. Fails if any values are missing.v tmp-postgresGet the file path of a [, regardless if it is a \ or ] type.x tmp-postgresEither create a] directory or do nothing to a \ one.z tmp-postgresEither remove a ] directory or do nothing to a \ one.{ tmp-postgres9Create the extra config lines for listening based on the U| tmp-postgresFMany processes require a "host" flag. We can generate one from the U.} tmp-postgresFGet the IP address, host name or UNIX domain socket directory as a ~ tmp-postgresTurn a R to a U . If the S is % default to "127.0.0.1". If the is a TD 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 N into a  %. Fails if any values are missing. tmp-postgresTurn a F into a ". Fails if any values are missing. tmp-postgres Make the E \" so it will not get cleaned up. tmp-postgres Create a F9 that sets the command line options of all processes (initdb, postgres and createdb ) using a tmp-postgres*Create all the temporary resources from a ;. This also combines the F from  with the  extraConfig passed in. tmp-postgres(Free the temporary resources created by  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 k tmp-postgres Lens for l tmp-postgres Lens for a tmp-postgres Lens for ` tmp-postgres Lens for d tmp-postgres Lens for b tmp-postgres Lens for c tmp-postgres Lens for Q tmp-postgres Lens for P tmp-postgres Lens for L tmp-postgres Lens for J tmp-postgres Lens for M tmp-postgres Lens for I tmp-postgres Lens for H tmp-postgres Lens for K tmp-postgres Lens for E tmp-postgres Lens for C tmp-postgres Lens for D tmp-postgres Lens for ? tmp-postgres Lens for = tmp-postgres Lens for @ tmp-postgres Lens for > tmp-postgres Lens for h tmp-postgres Lens for g 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 configm9:;<@?>=ABEDCFGMLKJIHNOQPRTSUWVXZY[]\^_dcba`efhgijlkmnopqrstuvwxyz{|}~mmijlknefhgop^_dcba`qrstu[]\vwXZYxyzUWV{|}RTS~NOQPFGMLKJIHABEDC;<@?>=:9None"#%047;<MSX_O tmp-postgres,Handle for holding temporary resources, the postgres< process handle and postgres connection information. The  also includes the final  that was 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 ; 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-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 ; using  ().Alternatively you can eschew  altogether, however your postgres' might start and run faster if you use . also sets the I to  r and P to r.ETo append additional lines to "postgresql.conf" file create a custom ; like the following.  custom = defaultConfig <> mempty { configPlan = mempty { partialPlanConfig = [ "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 &  .  <>~ [ "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 ;C that provides additional "postgresql.conf" lines. Equivalent to vdefaultPostgresConf extra = defaultConfig <> mempty { configPlan = mempty { partialPlanConfig = extra } }  tmp-postgres2Create temporary resources and use them to make a ;. The generated ; is combined with the passed in extraConfiguration to create a 2 that is used to create a database. The output  includes references to the temporary resources for cleanup and the final plan that was used to generate the database and processes tmp-postgres.Default start behavior. Equivalent to calling  with the  tmp-postgres Stop the postgresO process and cleanup any temporary directories 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 using the  from the  (e.g. resourcesPlan . dbResources) tmp-postgres>Reload the configuration file without shutting down. Calls pg_reload_conf(). tmp-postgres1Exception safe default database create. Takes an action continuation which is given a  it can use to connect to (see  or  ). All of the database resources are automatically cleaned up on completion even in the face of exceptions. Based on the value of >$ a "postgresql.conf" is created with " listen_addresses = 'IP_ADDRESS'  if it is V. If is W then the lines E listen_addresses = '' unix_socket_directories = SOCKET_DIRECTORY 3are added. This occurs as a side effect of calling . tmp-postgres2Default expectation safe interface. Equivalent to  the  tmp-postgresException safe version of  tmp-postgresAttempt to create 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 ;. tmp-postgres Display a  tmp-postgresextraConfiguration that is ed to the generated ;. The extra config is ed second, e.g. %generatedConfig <> extraConfiguration tmp-postgresextraConfiguration. Combined with the generated ;. See  for more info tmp-postgresaction continuation tmp-postgresaction continuation.None"#%047;<MSX_[ !;<=>?@FGHIJKLMNOPQRSTXYZ^_`abcdefghijklr[r;<=>?@FGHIJKLMNOPQ^_`abcdijklefghXYZRST !      !"#$%&'()*+,-./0123456789:;<=>??@ABCDDEFGHIJKLMNNOPQRSTUVWXYZ[\]]^_`abccdeffghijklmnopqrstuvwxyz{|}~ +tmp-postgres-1.7.1.0-Fl2f8QVtDW2J2btYcu2iIC$Database.Postgres.Temp.Internal.Core'Database.Postgres.Temp.Internal.PartialDatabase.Postgres.Temp.InternalDatabase.Postgres.TempstartDatabase.Postgres.Temp.Partial PartialPlanPlan planLogger planInitDb planCreateDb planPostgres planConfigplanDataDirectoryPostgresProcesspostgresProcessClientOptionspostgresProcessHandle PostgresPlanpostgresPlanProcessConfigpostgresPlanClientOptions ProcessConfigprocessConfigEnvVarsprocessConfigCmdLineprocessConfigStdInprocessConfigStdOutprocessConfigStdErrLogger StartErrorStartPostgresFailed InitDbFailedCreateDbFailedCompletePlanFailedEvent StartPostgres WaitForDB StartPlan TryToConnect waitForDB prettyKeyPair startProcess stopProcessexecuteProcess prettyOptionsterminateConnectionsstopPostgresProcessstartPostgresProcessthrowIfNotSuccess startPlanstopPlan$fExceptionStartError$fPrettyProcessConfig$fPrettyPostgresPlan$fPrettyPostgresProcess $fPrettyPlan $fShowEvent $fEqEvent $fOrdEvent$fShowStartError$fEqStartError$fOrdStartErrorLens'LensConfig configPlan configSocket configDataDir configPort Resources resourcesPlanresourcesSocketresourcesDataDirpartialPlanLoggerpartialPlanInitDbpartialPlanCreateDbpartialPlanPostgrespartialPlanConfigpartialPlanDataDirectoryPartialPostgresPlan partialPostgresPlanProcessConfigpartialPostgresPlanClientConfigPartialSocketClass PIpSocket PUnixSocket SocketClassIpSocket UnixSocketPartialDirectoryType PPermanent PTemporary DirectoryType Permanent TemporaryPartialProcessConfigpartialProcessConfigEnvVarspartialProcessConfigCmdLinepartialProcessConfigStdInpartialProcessConfigStdOutpartialProcessConfigStdErrPartialCommandLineArgspartialCommandLineArgsKeyBased partialCommandLineArgsIndexBasedPartialEnvVarspartialEnvVarsInheritpartialEnvVarsSpecific prettyMapcompletePartialEnvVarstakeWhileInSequencecompleteCommandLineArgs prettyHandlestandardProcessConfigaddErrorContext getOptioncompleteProcessConfig toFilePath makePermanentsetupDirectoryTypermDirIgnoreErrorscleanupDirectoryTypesocketClassToConfigsocketClassToHostFlagsocketClassToHostsetupPartialSocketClasscleanupSocketConfigcompletePostgresPlan completePlan hasInitDb hasCreateDbmakeResourcesDataDirPermanenttoPlan setupConfig cleanupConfigoptionsToConfig optionsToPlanclientOptionsToPlan userToPlan dbnameToPlanhostToSocketClasspartialEnvVarsInheritLpartialEnvVarsSpecificLpartialProcessConfigCmdLineLpartialProcessConfigEnvVarsLpartialProcessConfigStdErrLpartialProcessConfigStdInLpartialProcessConfigStdOutL partialPostgresPlanClientConfigL!partialPostgresPlanProcessConfigLpartialPlanConfigLpartialPlanCreateDbLpartialPlanDataDirectoryLpartialPlanInitDbLpartialPlanLoggerLpartialPlanPostgresLresourcesDataDirLresourcesPlanLresourcesSocketLconfigDataDirL configPlanL configPortL configSocketL!partialCommandLineArgsIndexBasedLpartialCommandLineArgsKeyBasedL$fPrettyPartialEnvVars$fMonoidPartialEnvVars$fSemigroupPartialEnvVars$fPrettyPartialCommandLineArgs!$fSemigroupPartialCommandLineArgs$fPrettyPartialProcessConfig$fPrettyDirectoryType$fMonoidPartialDirectoryType$fSemigroupPartialDirectoryType$fPrettyPartialDirectoryType$fPrettySocketClass$fMonoidPartialSocketClass$fSemigroupPartialSocketClass$fPrettyPartialSocketClass$fPrettyPartialPostgresPlan$fPrettyPartialPlan$fPrettyResources$fPrettyConfig$fGenericPartialEnvVars$fShowPartialEnvVars$fEqPartialEnvVars$fGenericPartialCommandLineArgs$fShowPartialCommandLineArgs$fEqPartialCommandLineArgs$fMonoidPartialCommandLineArgs$fGenericPartialProcessConfig$fEqPartialProcessConfig$fShowPartialProcessConfig$fSemigroupPartialProcessConfig$fMonoidPartialProcessConfig$fShowDirectoryType$fEqDirectoryType$fOrdDirectoryType$fShowPartialDirectoryType$fEqPartialDirectoryType$fOrdPartialDirectoryType$fShowSocketClass$fEqSocketClass$fOrdSocketClass$fGenericSocketClass$fShowPartialSocketClass$fEqPartialSocketClass$fOrdPartialSocketClass$fGenericPartialSocketClass$fGenericPartialPostgresPlan$fSemigroupPartialPostgresPlan$fMonoidPartialPostgresPlan$fGenericPartialPlan$fSemigroupPartialPlan$fMonoidPartialPlan$fGenericConfig$fSemigroupConfig$fMonoidConfigDB dbResourcesdbPostgresProcesstoConnectionStringtoConnectionOptionstoDataDirectorymakeDataDirPermanentdefaultPostgresConfig defaultConfigdefaultPostgresConf startConfigstop stopPostgresrestart reloadConfig withConfigwith withRestartoptionsToDefaultConfigprettyPrintConfig prettyPrintDB $fPrettyDBprocess-1.6.3.0System.Process.Common CreateProcessbaseGHC.IO.Handle.TypesHandle ProcessHandleSystem.ProcesswaitForProcessGHC.IO.ExceptionExitCode GHC.MaybeNothing/postgres-options-0.2.0.0-FEfVRHnVs2pG3RBcj4OWRP"Database.PostgreSQL.Simple.OptionsOptionsGHC.BasememptyStringData.Semigroup.InternalDualmappendGHC.IO.Handle.FDstdinstdoutstderr<>pure