h&      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ Safe-Inferred Safe-Inferred#postgresql-libpqcurrently idlepostgresql-libpqa command is in progresspostgresql-libpq"idle, in a valid transaction blockpostgresql-libpq#idle, in a failed transaction blockpostgresql-libpqthe connection is bad postgresql-libpqThe  Connection is ready. postgresql-libpq$The connection procedure has failed. postgresql-libpq"Waiting for connection to be made. postgresql-libpqConnection OK; waiting to send.postgresql-libpq'Waiting for a response from the server.postgresql-libpqReceived authentication; waiting for backend start-up to finish.postgresql-libpq3Negotiating environment-driven parameter settings.postgresql-libpqNegotiating SSL encryption.postgresql-libpqThe severity; the field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a localized translation of one of these. Always present.postgresql-libpqThe SQLSTATE code for the error. The SQLSTATE code identifies the type of error that has occurred; it can be used by front-end applications to perform specific operations (such as error handling) in response to a particular database error. For a list of the possible SQLSTATE codes, see Appendix A. This field is not localizable, and is always present.postgresql-libpqThe primary human-readable error message (typically one line). Always present.postgresql-libpqDetail: an optional secondary error message carrying more detail about the problem. Might run to multiple lines. postgresql-libpqHint: an optional suggestion what to do about the problem. This is intended to differ from detail in that it offers advice (potentially inappropriate) rather than hard facts. Might run to multiple lines.!postgresql-libpqA string containing a decimal integer indicating an error cursor position as an index into the original statement string. The first character has index 1, and positions are measured in characters not bytes."postgresql-libpq!This is defined the same as the ! field, but it is used when the cursor position refers to an internally generated command rather than the one submitted by the client. The #3 field will always appear when this field appears.#postgresql-libpqThe text of a failed internally-generated command. This could be, for example, a SQL query issued by a PL/pgSQL function.$postgresql-libpqAn indication of the context in which the error occurred. Presently this includes a call stack traceback of active procedural language functions and internally-generated queries. The trace is one entry per line, most recent first.%postgresql-libpqThe file name of the source-code location where the error was reported.&postgresql-libpqThe line number of the source-code location where the error was reported.'postgresql-libpq:The name of the source-code function reporting the error.)postgresql-libpq(The string sent to the server was empty.*postgresql-libpq6Successful completion of a command returning no data.+postgresql-libpqSuccessful completion of a command returning data (such as a SELECT or SHOW).,postgresql-libpq.Copy Out (from server) data transfer started.-postgresql-libpq+Copy In (to server) data transfer started..postgresql-libpq"Copy In/Out data transfer started./postgresql-libpq)The server's response was not understood.0postgresql-libpq1A nonfatal error (a notice or warning) occurred.1postgresql-libpqA fatal error occurred.2postgresql-libpqThe PGresult contains a single result tuple from the current command. This status occurs only when single-row mode has been selected for the query.7  '&%$#"! (210/.-,+*)<(c) 2010 Grant Monroe, (c) 2011 Leon P SmithBSD3 Safe-Inferred6postgresql-libpq6* encapsulates a connection to the backend.345678678543 Safe-Inferreddpostgresql-libpq.Like maybe with but takes an int. Usable with  withArrayLen. In  case uses 0 and . Safe-Inferred.<postgresql-libpqnotification channel name=postgresql-libpq&process ID of notifying server process>postgresql-libpqnotification payload string:>=<; Safe-Inferred?c?@ANone <(c) 2010 Grant Monroe, (c) 2011 Leon P SmithBSD3leon@melding-monads.com experimental Safe-Inferred"?Bpostgresql-libpqLoFd is a Large Object (pseudo) File Descriptor. It is understood by libpq but not by operating system calls.Dpostgresql-libpqContains the information needed to cancel a command issued through a particular database connection.Jpostgresql-libpq,Data representing a single row of the resultKpostgresql-libpqA complete row is not yet available. This case is only possible when & is has the async parameter set to .Lpostgresql-libpqNo more rows are availableMpostgresql-libpq8An error occurred (e.g. the connection is not in the , state). Call l for more information.Opostgresql-libpqThe data was sent.Ppostgresql-libpqAn error occurred (use l to retrieve details).Qpostgresql-libpqThe data was not sent because the attempt would block (this case is only possible if the connection is in nonblocking mode) Wait for write-ready (e.g. by using   on the m) and try again.Vpostgresql-libpqV encapsulates the result of a query (or more precisely, of a single SQL command --- a query string given to  can contain multiple commands and thus return multiple instances of V.Wpostgresql-libpq.Makes a new connection to the database server.This function opens a new database connection using the parameters taken from the string conninfo. Its nonblocking analogues are X and [.The passed string can be empty to use all default parameters, or it can contain one or more parameter settings separated by whitespace. Each parameter setting is in the form keyword = value. Spaces around the equal sign are optional. To write an empty value or a value containing spaces, surround it with single quotes, e.g., keyword = 'a value'. Single quotes and backslashes within the value must be escaped with a backslash, i.e., ' and \.Xpostgresql-libpqMake a connection to the database server in a nonblocking manner.postgresql-libpqWorkaround for bug in  before base 4.6. Ensure the finalizer is only run once, to prevent a segfault. See GHC ticket #7170 Note that  and ? do not need this workaround, since their finalizers are just  calls.Ypostgresql-libpqAllocate a Null Connection, which all libpq functions should safely fail on.Zpostgresql-libpq,Test if a connection is the Null Connection.[postgresql-libpqIf X succeeds, the next stage is to poll libpq so that it can proceed with the connection sequence. Use m to obtain the  of the socket underlying the database connection. Loop thus: If [ last returned , wait until the socket is ready to read (as indicated by select(), poll(), or similar system function). Then call [ again. Conversely, if [ last returned 6, wait until the socket is ready to write, then call [! again. If you have yet to call [, i.e., just after the call to X!, behave as if it last returned . Continue this loop until [ returns 6, indicating the connection procedure has failed, or 8, indicating the connection has been successfully made.\postgresql-libpq/Resets the communication channel to the server.This function will close the connection to the server and attempt to reestablish a new connection to the same server, using all the same parameters previously used. This might be useful for error recovery if a working connection is lost.]postgresql-libpqReset the communication channel to the server, in a nonblocking manner.^postgresql-libpq%To initiate a connection reset, call ]. If it returns &, the reset has failed. If it returns , poll the reset using ^ in exactly the same way as you would create the connection using [._postgresql-libpq$Closes the connection to the server.Note that the 6 must not be used again after _ has been called.`postgresql-libpq,Returns the database name of the connection.apostgresql-libpq(Returns the user name of the connection.bpostgresql-libpq'Returns the password of the connection.cpostgresql-libpq/Returns the server host name of the connection.dpostgresql-libpq#Returns the port of the connection.epostgresql-libpqReturns the command-line options passed in the connection request.postgresql-libpqHelper function that checks for nullPtrs and returns the empty string.fpostgresql-libpq%Returns the status of the connection.The status can be one of a number of values. However, only two of these are seen outside of an asynchronous connection procedure:   and  4. A good connection to the database has the status  5. A failed connection attempt is signaled by status  1. Ordinarily, an OK status will remain so until _, but a communications failure might result in the status changing to   prematurely. In that case the application could try to recover by calling \.See the entry for X and [8 with regards to other status codes that might be seen.gpostgresql-libpq8Returns the current in-transaction status of the server. is reported only when a query has been sent to the server and not yet completed.hpostgresql-libpq3Looks up a current parameter setting of the server.Certain parameter values are reported by the server automatically at connection startup or whenever their values change. h can be used to interrogate these settings. It returns the current value of a parameter if known, or  if the parameter is not known.ipostgresql-libpq6Interrogates the frontend/backend protocol being used.Applications might wish to use this to determine whether certain features are supported. Currently, the possible values are 2 (2.0 protocol), 3 (3.0 protocol), or zero (connection bad). This will not change after connection startup is complete, but it could theoretically change during a connection reset. The 3.0 protocol will normally be used when communicating with PostgreSQL 7.4 or later servers; pre-7.4 servers support only protocol 2.0. (Protocol 1.0 is obsolete and not supported by libpq.)jpostgresql-libpq4Returns an integer representing the backend version.Applications might use this to determine the version of the database server they are connected to. The number is formed by converting the major, minor, and revision numbers into two-decimal-digit numbers and appending them together. For example, version 8.1.5 will be returned as 80105, and version 8.2 will be returned as 80200 (leading zeroes are not shown). Zero is returned if the connection is bad.kpostgresql-libpq/Return the version of libpq that is being used.The result of this function can be used to determine, at run time, if specific functionality is available in the currently loaded version of libpq. The function can be used, for example, to determine which connection options are available for PQconnectdb or if the hex bytea output added in PostgreSQL 9.0 is supported.lpostgresql-libpqReturns the error message most recently generated by an operation on the connection.2Nearly all libpq functions will set a message for l: if they fail. Note that by libpq convention, a nonempty l result can be multiple lines, and will include a trailing newline. The result string should not be expected to remain the same across operations on the 6.mpostgresql-libpqObtains the file descriptor number of the connection socket to the server. (This will not change during normal operation, but could change during connection setup or reset.)npostgresql-libpqReturns the process 9 of the backend server process handling this connection.The backend PID is useful for debugging purposes and for comparison to NOTIFY messages (which include the PID of the notifying backend process). Note that the PID belongs to a process executing on the database server host, not the local host!opostgresql-libpqReturns  if the connection authentication method required a password, but none was available. Returns  if not.This function can be applied after a failed connection attempt to decide whether to prompt the user for a password.ppostgresql-libpqReturns  if the connection authentication method used a password. Returns  if not.This function can be applied after either a failed or successful connection attempt to detect whether the server demanded a password.postgresql-libpqConvert a list of parameters to the format expected by libpq FFI calls.postgresql-libpqConvert a list of parameters to the format expected by libpq FFI calls, prepared statement variant.qpostgresql-libpq9Submits a command to the server and waits for the result. Returns a V or possibly . A V will generally be returned except in out-of-memory conditions or serious errors such as inability to send the command to the server. If a + is returned, it should be treated like a 1 result. Use l+ to get more information about such errors.It is allowed to include multiple SQL commands (separated by semicolons) in the command string. Multiple queries sent in a single q call are processed in a single transaction, unless there are explicit BEGIN/COMMIT commands included in the query string to divide it into multiple transactions. Note however that the returned V structure describes only the result of the last command executed from the string. Should one of the commands fail, processing of the string stops with it and the returned V describes the error condition.rpostgresql-libpqSubmits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text.r is like q, but offers additional functionality: parameter values can be specified separately from the command string proper, and query results can be requested in either text or binary format. r is supported only in protocol 3.0 and later connections; it will fail when using protocol 2.0.The primary advantage of r over q is that parameter values can be separated from the command string, thus avoiding the need for tedious and error-prone quoting and escaping.Unlike q, r allows at most one SQL command in the given string. (There can be semicolons in it, but not more than one nonempty command.) This is a limitation of the underlying protocol, but has some usefulness as an extra defense against SQL-injection attacks.Tip: Specifying parameter types via OIDs is tedious, particularly if you prefer not to hard-wire particular OID values into your program. However, you can avoid doing so even in cases where the server by itself cannot determine the type of the parameter, or chooses a different type than you want. In the SQL command text, attach an explicit cast to the parameter symbol to show what data type you will send. For example: SELECT * FROM mytable WHERE x = $1::bigint; This forces parameter $1 to be treated as bigint, whereas by default it would be assigned the same type as x. Forcing the parameter type decision, either this way or by specifying a numeric type OID, is strongly recommended when sending parameter values in binary format, because binary format has less redundancy than text format and so there is less chance that the server will detect a type mismatch mistake for you.spostgresql-libpqSubmits a request to create a prepared statement with the given parameters, and waits for completion.s8 creates a prepared statement for later execution with t. This feature allows commands that will be used repeatedly to be parsed and planned just once, rather than each time they are executed. s is supported only in protocol 3.0 and later connections; it will fail when using protocol 2.0.The function creates a prepared statement named stmtName from the query string, which must contain a single SQL command. stmtName can be "" to create an unnamed statement, in which case any pre-existing unnamed statement is automatically replaced; otherwise it is an error if the statement name is already defined in the current session. If any parameters are used, they are referred to in the query as $1, $2, etc. paramTypes specifies, by ?, the data types to be assigned to the parameter symbols. If paramTypes is , or any particular element in the array is zero, the server assigns a data type to the parameter symbol in the same way it would do for an untyped literal string. Also, the query can use parameter symbols with numbers higher than the length of paramTypes; data types will be inferred for these symbols as well. (See u9 for a means to find out what data types were inferred.)As with q, the result is normally a V< whose contents indicate server-side success or failure. A  result indicates out-of-memory or inability to send the command at all. Use l+ to get more information about such errors.!Prepared statements for use with t can also be created by executing SQL PREPARE statements. (But s is more flexible since it does not require parameter types to be pre-specified.) Also, although there is no libpq function for deleting a prepared statement, the SQL DEALLOCATE statement can be used for that purpose.tpostgresql-libpqSends a request to execute a prepared statement with given parameters, and waits for the result.t is like r, but the command to be executed is specified by naming a previously-prepared statement, instead of giving a query string. This feature allows commands that will be used repeatedly to be parsed and planned just once, rather than each time they are executed. The statement must have been prepared previously in the current session. t is supported only in protocol 3.0 and later connections; it will fail when using protocol 2.0. The parameters are identical to r, except that the name of a prepared statement is given instead of a query string, and the paramTypes parameter is not present (it is not needed since the prepared statement's parameter types were determined when it was created).upostgresql-libpqSubmits a request to obtain information about the specified prepared statement, and waits for completion.u allows an application to obtain information about a previously prepared statement. u is supported only in protocol 3.0 and later connections; it will fail when using protocol 2.0.stmtName can be empty to reference the unnamed statement, otherwise it must be the name of an existing prepared statement. On success, a V with status * is returned. The functions  and  can be applied to this V to obtain information about the parameters of the prepared statement, and the functions }, , , etc provide information about the result columns (if any) of the statement.vpostgresql-libpqSubmits a request to obtain information about the specified portal, and waits for completion.v allows an application to obtain information about a previously created portal. (libpq does not provide any direct access to portals, but you can use this function to inspect the properties of a cursor created with a DECLARE CURSOR SQL command.) v is supported only in protocol 3.0 and later connections; it will fail when using protocol 2.0.portalName can be empty to reference the unnamed portal, otherwise it must be the name of an existing portal. On success, a V with status * is returned. The functions }, , , etc can be applied to the V to obtain information about the result columns (if any) of the portal.wpostgresql-libpq)Returns the result status of the command.xpostgresql-libpq Converts the ( returned by w into a string describing the status code. The caller should not free the result.ypostgresql-libpqReturns the error message associated with the command, or an empty string if there was no error.zpostgresql-libpqFrees the memory associated with a result. Note that using this function correctly is especially tricky; you need to ensure that no references to the result. This means no references to a value returned by , no references hiding inside an unevaluated thunk, etc. Improper use of this function is likely to cause a segfault. Also, the use of this function is not strictly necessary; the memory will get freed by the garbage collector when there are no more references to the result.{postgresql-libpq/Returns an individual field of an error report.fieldcode is an error field identifier; see the symbols listed below.  is returned if the PGresult is not an error or warning result, or does not include the specified field. Field values will normally not include a trailing newline.The client is responsible for formatting displayed information to meet its needs; in particular it should break long lines as needed. Newline characters appearing in the error message fields should be treated as paragraph breaks, not line breaks.Errors generated internally by libpq will have severity and primary message, but typically no other fields. Errors returned by a pre-3.0-protocol server will include severity and primary message, and sometimes a detail message, but no other fields./Note that error fields are only available from V objects, not 6* objects; there is no errorField function.|postgresql-libpqReturns the number of rows (tuples) in the query result. (Note that PGresult objects are limited to no more than INT_MAX rows, so an int result is sufficient.)}postgresql-libpqReturns the number of columns (fields) in each row of the query result.postgresql-libpq2Returns the column name associated with the given T$ number. Column numbers start at 0.postgresql-libpqReturns the column number associated with the given column name.postgresql-libpqReturns the OID of the table from which the given column was fetched. Column numbers start at 0.postgresql-libpqReturns the column number (within its table) of the column making up the specified query result column. Query-result column numbers start at 0, but table columns have nonzero numbers.postgresql-libpq Returns the 1 of the given column. Column numbers start at 0.postgresql-libpqReturns the data type associated with the given column number. The ? returned is the internal OID number of the type. Column numbers start at 0.You can query the system table pg_type to obtain the names and properties of the various data types. The OIDs of the built-in data types are defined in the file srcinclude&catalog/pg_type.h in the source tree.postgresql-libpqReturns the type modifier of the column associated with the given column number. Column numbers start at 0.The interpretation of modifier values is type-specific; they typically indicate precision or size limits. The value -1 is used to indicate "no information available". Most data types do not use modifiers, in which case the value is always -1.postgresql-libpqReturns the size in bytes of the column associated with the given column number. Column numbers start at 0. returns the space allocated for this column in a database row, in other words the size of the server's internal representation of the data type. (Accordingly, it is not really very useful to clients.) A negative value indicates the data type is variable-length.postgresql-libpqReturns a single field value of one row of a PGresult. Row and column numbers start at 0.#For convenience, this binding uses  and  to help construct the result. Note: The  ByteString returned holds a reference to the Result. As long as ByteString is live, the Result will not be garbage collected.  returns a copy of the data.postgresql-libpqReturns a copy of a single field value of one row of a PGresult. Row and column numbers start at 0.#For convenience, this binding uses  and  to help construct the result.postgresql-libpqTests a field for a null value. Row and column numbers start at 0.postgresql-libpqReturns the actual length of a field value in bytes. Row and column numbers start at 0.This is the actual data length for the particular data value, that is, the size of the object pointed to by . For text data format this is the same as strlen(). For binary format this is essential information. Note that one should not rely on # to obtain the actual data length.postgresql-libpq9Returns the number of parameters of a prepared statement.This function is only useful when inspecting the result of PQdescribePrepared. For other types of queries it will return zero.postgresql-libpqReturns the data type of the indicated statement parameter. Parameter numbers start at 0.?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~6WX[YZ\]^_`abcde fghijklmnopVq?@Arstuv()*+,-./012wxy !"#$%&'{z|}RSTU~NOPQIJKLMEFGHD:;<=>BC    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEEFGHIIJKKLMNOPQRSTUVWXYZZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~/postgresql-libpq-0.9.5.0-6MLukd32fDjKTP0j0sODupDatabase.PostgreSQL.LibPQ"Database.PostgreSQL.LibPQ.Internal Database.PostgreSQL.LibPQ.CompatDatabase.PostgreSQL.LibPQ.Enums!Database.PostgreSQL.LibPQ.Marshal Database.PostgreSQL.LibPQ.NotifyDatabase.PostgreSQL.LibPQ.OidDatabase.PostgreSQL.LibPQ.FFIControl.ConcurrentthreadWaitWriteFormatTextBinaryTransactionStatus TransIdle TransActive TransInTrans TransInError TransUnknown ConnStatus ConnectionOk ConnectionBadConnectionStartedConnectionMadeConnectionAwaitingResponseConnectionAuthOkConnectionSetEnvConnectionSSLStartup PollingStatus PollingFailedPollingReadingPollingWriting PollingOk Verbosity ErrorsTerse ErrorsDefault ErrorsVerbose FieldCode DiagSeverity DiagSqlstateDiagMessagePrimaryDiagMessageDetailDiagMessageHintDiagStatementPositionDiagInternalPositionDiagInternalQuery DiagContextDiagSourceFileDiagSourceLineDiagSourceFunction ExecStatus EmptyQuery CommandOkTuplesOkCopyOutCopyInCopyBoth BadResponse NonfatalError FatalError SingleTuple NoticeBuffer CNoticeBufferPGconn ConnectionConnwithConn$fEqConnectionNotify notifyRelname notifyBePid notifyExtraOid invalidOidLoFdCancel FlushStatusFlushOk FlushFailed FlushWriting CopyOutResult CopyOutRowCopyOutWouldBlock CopyOutDone CopyOutError CopyInResultCopyInOk CopyInErrorCopyInWouldBlockRowColumnColResult connectdb connectStartnewNullConnectionisNullConnection connectPollreset resetStart resetPollfinishdbuserpasshostportoptionsstatustransactionStatusparameterStatusprotocolVersion serverVersion libpqVersion errorMessagesocket backendPIDconnectionNeedsPasswordconnectionUsedPasswordexec execParamsprepare execPrepareddescribePrepareddescribePortal resultStatus resStatusresultErrorMessageunsafeFreeResultresultErrorFieldntuplesnfieldstoColumntoRowfnamefnumberftable ftablecolfformatftypefmodfsizegetvalue getvalue' getisnull getlengthnparams paramtype cmdStatus cmdTuplesescapeStringConnescapeByteaConn unescapeByteaescapeIdentifier putCopyData putCopyEnd getCopyData sendQuerysendQueryParams sendPreparesendQueryPreparedsendDescribePreparedsendDescribePortal getResult consumeInputisBusysetnonblocking isnonblockingsetSingleRowModeflush getCancelcancelnotifiesclientEncodingsetClientEncodingsetErrorVerbositydisableNoticeReportingenableNoticeReporting getNoticeloCreatloCreateloImportloImportWithOidloExportloOpenloWriteloReadloSeekloTell loTruncateloCloseloUnlink$fEqLoFd $fOrdLoFd $fShowLoFd $fEqCancel $fShowCancel$fEqFlushStatus$fShowFlushStatus$fShowCopyOutResult$fEqCopyInResult$fShowCopyInResult$fEqRow$fOrdRow $fShowRow $fEnumRow$fNumRow $fEqColumn $fOrdColumn $fShowColumn $fEnumColumn $fNumColumn $fEqResult $fShowResultwithPSmkPSFromCIntfromCIntToCInttoCInt maybeWithIntbase GHC.MaybeNothingGHC.PtrnullPtrunsafeWithArrayPGnoticepgNoticePeekLenpgNoticeOffsetStr PGVerbosityNoticeReceiverCFdPGcancelPGresult c_lo_unlink c_lo_close c_lo_truncate c_lo_tell c_lo_lseek c_lo_read c_lo_write c_lo_open c_lo_exportc_lo_import_with_oid c_lo_import c_lo_create c_lo_creatc_PQsetNoticeReceiverp_store_noticesp_discard_notices c_get_noticec_free_noticebufferc_malloc_noticebuffer c_PQfreemem p_PQfreememc_PQescapeIdentifierc_PQunescapeByteac_PQescapeByteaConnc_PQescapeStringConn c_PQcmdTuples c_PQcmdStatus c_PQparamtype c_PQnparams c_PQgetlength c_PQgetisnull c_PQgetvalue c_PQfsizec_PQfmod c_PQftype c_PQfformat c_PQftablecol c_PQftable c_PQfnumber c_PQfname c_PQnfields c_PQntuplesc_PQresultErrorFieldc_PQresultErrorMessage c_PQresStatusc_PQresultStatus p_PQclearc_PQdescribePortalc_PQdescribePreparedc_PQexecPrepared c_PQpreparec_PQexecParamsc_PQexec c_PQgetResultc_PQsetSingleRowModec_PQisnonblockingc_PQsetnonblocking c_PQisBusyc_PQconsumeInput c_PQnotifies c_PQcancelp_PQfreeCancel c_PQgetCancel c_PQflushc_PQsendDescribePortalc_PQsendDescribePreparedc_PQsendQueryPreparedc_PQsendPreparec_PQsendQueryParams c_PQsendQueryc_PQgetCopyDatac_PQputCopyEndc_PQputCopyDatac_PQsetErrorVerbosityc_PQsetClientEncodingc_pg_encoding_to_charc_PQclientEncoding c_PQresetPollc_PQresetStart c_PQreset c_PQfinishc_PQerrorMessage c_PQsocketc_PQlibVersionc_PQserverVersionc_PQprotocolVersionc_PQparameterStatusc_PQtransactionStatus c_PQstatusc_PQconnectionUsedPasswordc_PQconnectionNeedsPasswordc_PQbackendPID c_PQoptionsc_PQportc_PQhostc_PQpassc_PQuserc_PQdbc_PQconnectPollc_PQconnectStart c_PQconnectdbghc-prim GHC.TypesTruenewForeignPtrOnceForeign.Concurrent newForeignPtrmaybeBsFromForeignPtrGHC.ForeignPtrtouchForeignPtrSystem.Posix.TypesFdFalse statusStringCPid withParamswithParamsPreparedmaybeBsFromResult GHC.IO.IOMode WriteMode ReadWriteModeReadMode AppendMode