! Ӿ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None "#%047;<MX_6 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-postgres7Start a process and block until it finishes return the .# tmp-postgresRForce all connections to the database to close. Called during shutdown as well.$ 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-postgresA simple helper to throw s when they are .' 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;<MX_>0 tmp-postgres7The high level options for overriding default behavior.2 tmp-postgresEExtend or replace any of the configuration used to create a final 3 tmp-postgresOverride the default J by setting this.4 tmp-postgresROverride the default temporary data directory by passing in 'Permanent DIRECTORY'5 tmp-postgres_A monoid for using an existing port (via 'Just PORT_NUMBER') or requesting a free port (via a )6 tmp-postgres6[ holds a description of the temporary folders (if there are any) and includes the final  that can be used with ' . See w# for an example of how to create a 6.8 tmp-postgresFinal . See ' for information on s9 tmp-postgresThe JL. 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-postgresThe monoidial version of B. Used to combine overrides with defaults when creating a plan.C tmp-postgresPartialPostgresPlanE tmp-postgresMonoid for the postgres ProcessConfig.F tmp-postgresMonoid for the postgres client connection options.G tmp-postgresThe monoidial version of J=. Used to combine overrides with defaults when creating a J8. The monoid instance treats 'PUnixSocket mempty' as  and combines theH tmp-postgres1The monoid for combining IP address configurationI tmp-postgres2The monoid for combining UNIX socket configurationJ 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.K tmp-postgresIP socket type. The G is either an IP address or a host that will resolve to an IP address.L tmp-postgresUNIX domain socketM tmp-postgresThe monoidial version of P=. Used to combine overrides with defaults when creating a P . The monoid instance treats O as  and takes the last N value.N tmp-postgres.A permanent file that should not be generated.O tmp-postgres)A temporary file that needs to generated.P tmp-postgresGA type to track whether a file is temporary and needs to be cleaned up.S tmp-postgresThe monoidial version of =. Used to combine overrides with defaults when creating a .U tmp-postgresRA monoid for combine environment variables or replacing them. for the maps the & monoid is used. So the last key wins.V tmp-postgres=A monoid for combine command line arguments or replacing themW tmp-postgres,A monoid for configuring the standard input X tmp-postgres-A monoid for configuring the standard output Y tmp-postgres,A monoid for configuring the standard error Z tmp-postgres.A type to help combine command line arguments.\ 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.] tmp-postgresGArguments that appear at the end of the key based arguments. The % monoid is used so the last key wins.^ tmp-postgresvThe environment variables can be declared to inherit from the running process or they can be specifically added.b tmp-postgres4Combine the current environment (if indicated by ` ) with ac tmp-postgresGTake values as long as the index is the successor of the last index.d tmp-postgresThis convert the Z to 'e tmp-postgresThe e sets the handles to ,  and D and inherits the environment variables from the calling process.f tmp-postgres4A helper to add more info to all the error messages.g tmp-postgres$A helper for creating an error if a  is not defined.h tmp-postgresTurn a S into a %. Fails if any values are missing.i tmp-postgresGet the file path of a P, regardless if it is a Q or R type.j tmp-postgresEither create aR directory or do nothing to a Q one.k tmp-postgres1Either create a temporary directory or do nothingl tmp-postgresEither remove a R directory or do nothing to a Q one.m tmp-postgres9Create the extra config lines for listening based on the Jn tmp-postgresFMany processes require a "host" flag. We can generate one from the J.o tmp-postgresFGet the IP address, host name or UNIX domain socket directory as a p tmp-postgresTurn a G to a J . If the H is % default to "127.0.0.1". If the is a ID optionally create a temporary directory if configured to do so.q tmp-postgres?Cleanup the UNIX socket temporary directory if one was created.r tmp-postgresTurn a C into a  %. Fails if any values are missing.s tmp-postgresTurn a ; into a ". Fails if any values are missing.t tmp-postgresReturns  if the ; has a  >u tmp-postgresReturns  if the ; has a  ?v tmp-postgres Create a ;9 that sets the command line options of all processes (initdb, postgres and createdb ) using aw tmp-postgres*Create all the temporary resources from a 0. This also combines the ; from v with the  extraConfig passed in.x tmp-postgres(Free the temporary resources created by wy 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.z tmp-postgres Convert the  to a ;& that can be connected to with the .{ tmp-postgres Wrap the  in an appropiate C| tmp-postgres Create a ; given a user} tmp-postgresAdds a createdb> PartialProcessPlan with the argument as the database name.~ tmp-postgresSParse a host string as either an UNIX domain socket directory or a domain or IP.v 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 directoryw tmp-postgres extraConfig to  after the default configO01543267:98;<BA@?>=CDFEGIHJLKMONPRQSTYXWVUZ[]\^_a`bcdefghijklmnopqrstuvwxyz{|}~O^_a`bZ[]\cdSTYXWVUefghPRQiMONjklJLKmnoGIHpqCDFEr;<BA@?>=stu67:98015432vwxyz{|}~None "#%047;<MX_ϴ 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 /postgresProcessClientConfig . dbPostgresProcess 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"  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 0 using  ().Alternatively you can eschew  altogether, however your postgres( might start and run faster if you use . also sets the > to  e and E to e. tmp-postgres the  with a 0C 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 0. The generated 0 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  q). All of the database resources are automatically cleaned up on completion even in the face of exceptions. tmp-postgres2Default expectation safe interface. Equivalent to  the  tmp-postgresException safe version of  tmp-postgresAttempt to create a 0 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-postgresextraConfiguration that is ed to the generated 0. The extra config is ed second, e.g. %generatedConfig <> extraConfiguration tmp-postgresextraConfiguration. Combined with the generated 0. See  for more info tmp-postgresaction continuation tmp-postgresaction continuation.None "#%047;<MX_[ 012345;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ae[e012345PQRMNOJKLGHI^_`aZ[\]STUVWXYCDEF  ;<=>?@AB      !"#$%&'()*+,-./012344567899:;<=>?@ABCCDEFGHIJKLMNOPQRRSTUVWXXYZ[[\]^_`abcdefghijklmnopqrstuvwxyz{|}~+tmp-postgres-1.5.0.0-FwUuhmxVHIG7HToJRSqgBA$Database.Postgres.Temp.Internal.Core'Database.Postgres.Temp.Internal.PartialDatabase.Postgres.Temp.InternalDatabase.Postgres.TempstartDatabase.Postgres.Temp.Partial PartialPlanPlan planLogger planInitDb planCreateDb planPostgres planConfigplanDataDirectoryPostgresProcesspostgresProcessClientConfigpostgresProcessHandle PostgresPlanpostgresPlanProcessConfigpostgresPlanClientConfig ProcessConfigprocessConfigEnvVarsprocessConfigCmdLineprocessConfigStdInprocessConfigStdOutprocessConfigStdErrLogger StartErrorStartPostgresFailed InitDbFailedCreateDbFailedCompletePlanFailedEvent StartPostgres WaitForDB waitForDB startProcessexecuteProcessterminateConnectionsstopPostgresProcessstartPostgresProcessthrowIfNotSuccessinitPlan shutdownPlan$fExceptionStartError $fShowEvent $fEqEvent $fOrdEvent$fShowStartError$fEqStartError$fOrdStartErrorConfig configPlan configSocket configDataDir configPort Resources resourcesPlanresourcesSocketresourcesDataDirpartialPlanLoggerpartialPlanInitDbpartialPlanCreateDbpartialPlanPostgrespartialPlanConfigpartialPlanDataDirectoryPartialPostgresPlan partialPostgresPlanProcessConfigpartialPostgresPlanClientConfigPartialSocketClass PIpSocket PUnixSocket SocketClassIpSocket UnixSocketPartialDirectoryType PPermanent PTemporary DirectoryType Permanent TemporaryPartialProcessConfigpartialProcessConfigEnvVarspartialProcessConfigCmdLinepartialProcessConfigStdInpartialProcessConfigStdOutpartialProcessConfigStdErrPartialCommandLineArgspartialCommandLineArgsKeyBased partialCommandLineArgsIndexBasedPartialEnvVarspartialEnvVarsInheritpartialEnvVarsSpecificcompletePartialEnvVarstakeWhileInSequencecompleteCommandLineArgsstandardProcessConfigaddErrorContext getOptioncompleteProcessConfig toFilePathinitDirectoryTypermDirIgnoreErrorsshutdownDirectoryTypesocketClassToConfigsocketClassToHostFlagsocketClassToHostinitPartialSocketClassshutdownSocketConfigcompletePostgresPlan completePlan hasInitDb hasCreateDbtoPlan initConfigshutdownResourcesoptionsToConfig optionsToPlanclientOptionsToPlan userToPlan dbnameToPlanhostToSocketClass$fMonoidPartialEnvVars$fSemigroupPartialEnvVars!$fSemigroupPartialCommandLineArgs$fMonoidPartialDirectoryType$fSemigroupPartialDirectoryType$fMonoidPartialSocketClass$fSemigroupPartialSocketClass$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 dbResourcesdbPostgresProcesstoConnectionStringdefaultPostgresConfig defaultConfigdefaultPostgresConf startConfigstop stopPostgresrestart reloadConfig withConfigwith withRestartoptionsToDefaultConfigprocess-1.6.3.0System.Process.Common CreateProcessbaseGHC.IO.Handle.TypesHandle ProcessHandleGHC.IO.ExceptionExitCode ExitFailure GHC.MaybeNothingGHC.BasememptyStringData.Semigroup.InternalDualmappendGHC.IO.Handle.FDstdinstdoutstderr Data.MonoidLastghc-prim GHC.TypesTrueJust/postgres-options-0.2.0.0-FEfVRHnVs2pG3RBcj4OWRP"Database.PostgreSQL.Simple.OptionsOptions<>pure