!&X      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None "#%047;<X_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-postgresPostgresPlan 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-postgresForce all connections to the database to close. Can be useful in some testing situations. 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& 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;<X_70 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 t# 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-postgres<A monoid for combine environment variables or replacing themV 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 ted with value so the key should include the space or equals (as shown in the first two examples respectively).] tmp-postgres?Arguments that appear at the end of the key based arguments.^ tmp-postgres^5 is helper for overriding configuration values. It's ' instance let's one either combine the a of two ^s using  via the `O constructor or one can wholly replace the value with the last value using the _ constructor. Roughly u x <> Replace y = Replace y Replace x <> Mappend y = Replace (x <> y) Mappend x <> Mappend y = Mappend (x <> y) a tmp-postgresGet the value of a ^ regardless if it is a _ or a `.b tmp-postgresGTake values as long as the index is the successor of the last index.c tmp-postgresThis convert the Z to 'd tmp-postgresThe d sets the handles to ,  and D and inherits the environment variables from the calling process.e tmp-postgres4A helper to add more info to all the error messages.f tmp-postgres$A helper for creating an error if a  is not defined.g tmp-postgresTurn a S into a %. Fails if any values are missing.h tmp-postgresGet the file path of a P, regardless if it is a Q or R type.i tmp-postgresEither create aR directory or do nothing to a Q one.j tmp-postgres1Either create a temporary directory or do nothingk tmp-postgresEither remove a R directory or do nothing to a Q one.l tmp-postgres9Create the extra config lines for listening based on the Jm tmp-postgresFMany processes require a "host" flag. We can generate one from the J.n tmp-postgresFGet the IP address, host name or UNIX domain socket directory as a o 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.p tmp-postgres?Cleanup the UNIX socket temporary directory if one was created.q tmp-postgresTurn a C into a  %. Fails if any values are missing.r tmp-postgresTurn a ; into a ". Fails if any values are missing.s tmp-postgres Create a ;9 that sets the command line options of all processes (initdb, postgres and createdb ) using at tmp-postgres*Create all the temporary resources from a 0. This also combines the ; from s with the  extraConfig passed in.u tmp-postgres(Free the temporary resources created by tv 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.s tmp-postgresport tmp-postgres7Whether to listen on a IP address or UNIX domain socket tmp-postgresThe postgres data directoryt tmp-postgres extraConfig to  after the default configK01543267:98;<BA@?>=CDFEGIHJLKMONPRQSTYXWVUZ[]\^`_abcdefghijklmnopqrstuvwxyzK^`_aZ[]\bcSTYXWVUdefgPRQhMONijkJLKlmnGIHopCDFEq;<BA@?>=r67:98015432stuvwxyzNone "#%047;<X_Ž 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. 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-postgresThe default configuration. This will create a database called "test" and create a temporary directory for the data and a temporary directory for a unix socket on a random port. If you would like to customize this behavior you can start with the % and overwrite fields or combine the 0 with another config using  (>). If you would like complete control over the behavior of initdb, postgres and createdb$ you can call the internal function '3 directly although this should not be necessary. tmp-postgres makes a default config with dD. It is used by default but can be overriden by the extra config. 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-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-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;<X_ôT 012345;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY^_`T012345^_`PQRMNOJKLGHISTUVWXYCDEF  ;<=>?@AB      !"#$%&'()*+,-./012344567899:;<=>?@ABCCDEFGHIJKLMNOPQRRSTUVWXXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~+tmp-postgres-1.2.0.0-DEzrFj6NCTrEQMgv0p2grE$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 partialCommandLineArgsIndexBasedLastoidReplaceMappend getLastoidtakeWhileInSequencecompleteCommandLineArgsstandardProcessConfigaddErrorContext getOptioncompleteProcessConfig toFilePathinitDirectoryTypermDirIgnoreErrorsshutdownDirectoryTypesocketClassToConfigsocketClassToHostFlagsocketClassToHostinitPartialSocketClassshutdownSocketConfigcompletePostgresPlan completePlantoPlan initConfigshutdownResourcesoptionsToConfig optionsToPlan userToPlan dbnameToPlanhostToSocketClass$fMonoidLastoid$fSemigroupLastoid!$fSemigroupPartialCommandLineArgs$fSemigroupPartialProcessConfig$fMonoidPartialDirectoryType$fSemigroupPartialDirectoryType$fMonoidPartialSocketClass$fSemigroupPartialSocketClass $fShowLastoid $fEqLastoid$fFunctorLastoid$fGenericPartialCommandLineArgs$fShowPartialCommandLineArgs$fEqPartialCommandLineArgs$fMonoidPartialCommandLineArgs$fGenericPartialProcessConfig$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 defaultConfigstandardConfig startWithstop stopPostgresrestart reloadConfigwithPlanwith withRestartoptionsToDefaultConfigprocess-1.6.3.0System.Process.Common CreateProcessbaseGHC.IO.Handle.TypesHandle ProcessHandleGHC.IO.ExceptionExitCode ExitFailure GHC.MaybeNothingGHC.BasememptyStringmappend Semigroup<>GHC.IO.Handle.FDstdinstdoutstderr Data.MonoidLast/postgres-options-0.2.0.0-FEfVRHnVs2pG3RBcj4OWRP"Database.PostgreSQL.Simple.OptionsOptions