!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~        !"#$%&'()*+ , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f ghijklmnopqrstuvwxyz{|}~                       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                 (c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QReA structure representing some of the metadata regarding a PostgreSQL type, mostly taken from the pg_type table. !"#$%&'()* !"#$%&'()* !"#$%&#$%&'#$%&(#$%&)*(c) 2011-2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QRs+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&#$%&'#$%&(#$%&)*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~s+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~(c) 2012-2015 Leon P SmithBSD3leon@melding-monads.com experimentalSafe $(02QR;a way to reify a list of exceptions into a single exceptionTwo U cases are considered equal, regardless of what the list of exceptions looks like.  None$(QR Like  ., but backported to base before version 4.3.0.9Note that the restore callback is monomorphic, unlike in  {. This could be fixed by changing the type signature, but it would require us to enable the RankNTypes extension (since   has a rank-3 type). The withTransactionModeT function calls the restore callback only once, so we don't need that polymorphism.            B(c) 2012-2015 Leon P Smith (c) 2015 Bryan O'SullivanBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QRT Parse a date of the form  YYYY-MM-DD.4Parse a two-digit integer (e.g. day of month, hour).Parse a time of the form HH:MM[:SS[.SSS]].GParse a count of seconds, with the integer part being two digits long.Parse a time zone, and return F if the offset from UTC is zero. (This makes some speedups possible.)Parse a time zone, and return F if the offset from UTC is zero. (This makes some speedups possible.)#Parse a date and time, of the form YYYY-MM-DD HH:MM:SS$. The space may be replaced with a TD. The number of seconds may be followed by a fractional component. Behaves as 5, but converts any time zone offset into a UTC time.5Parse a date with time zone info. Acceptable formats: YYYY-MM-DD HH:MM:SS Z!The first space may instead be a T*, and the second space is optional. The Z represents UTC. The Z6 may be replaced with a time zone offset of the form +0000 or -08:00-, where the first two digits are hours, the :D is optional and the second two digits (also optional) are minutes.   None$(QR !"#$%&'()*+,&'()*+, !"#$%&'()*+,(c) 2012-2015 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(02QR--./+-*-./ (c) 2012-2015 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QR(c) 2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QR @(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone $(02IQR  Represents a VALUES0 table literal, usable as an alternative to  and M. The main advantage is that you can parametrize more than just a single VALUES expression. For example, here's a query to insert a thing into one table and some attributes of that thing into another, returning the new id generated by the database: query c [sql| WITH new_thing AS ( INSERT INTO thing (name) VALUES (?) RETURNING id ), new_attributes AS ( INSERT INTO thing_attributes SELECT new_thing.id, attrs.* FROM new_thing JOIN ? attrs ON TRUE ) SELECT * FROM new_thing |] ("foo", Values [ "int4", "text" ] [ ( 1 , "hello" ) , ( 2 , "world" ) ])b(Note this example uses writable common table expressions, which were added in PostgreSQL 9.1)AThe second parameter gets expanded into the following SQL syntax: 0(VALUES (1::"int4",'hello'::"text"),(2,'world'))GWhen the list of attributes is empty, the second parameter expands to: ,(VALUES (null::"int4",null::"text") LIMIT 0) By contrast,  executeMany and  returning? don't issue the query in the empty case, and simply return 0 and [] respectively. This behavior is usually correct given their intended use cases, but would certainly be wrong in the example above.The first argument is a list of postgresql type names. Because this is turned into a properly quoted identifier, the type name is case sensitive and must be as it appears in the pg_type" table. Thus, you must write  timestamptz instead of timestamp with time zone, int4 instead of integer or serial, _int8 instead of bigint[], etcetera.You may omit the type names, however, if you do so the list of values must be non-empty, and postgresql must be able to infer the types of the columns from the surrounding context. If the first condition is not met, pg will throw an exception without issuing the query. In the second case, the postgres server will return an error which will be turned into a SqlError exception.See  :https://www.postgresql.org/docs/9.5/static/sql-values.html for more information.rA composite type to parse your custom data structures without having to define dummy newtype wrappers every time. !instance FromRow MyData where ... "instance FromRow MyData2 where ...%then I can do the following for free: Kres <- query' c "..." forM res $ \(MyData{..} :. MyData2{..}) -> do .... *Wrap a list for use as a PostgreSQL array.cWrap text for use as (maybe) qualified identifier, i.e. a table with schema, or column with table.AWrap text for use as sql identifier, i.e. a table or column name.Wrap binary data for use as a bytea value.$Wrap a list of values for use in an IN clause. Replaces a single "?:" character with a parenthesized list of rendered values.Example: Bquery c "select * from whatever where id in ?" (Only (In [3,4,5])) Note that In [] expands to (null)p, which works as expected in the query above, but evaluates to the logical null value on every row instead of TRUE0. This means that changing the query above to ... id NOT in ?n and supplying the empty list as the parameter returns zero rows, instead of all of them as one would expect.Since postgresql doesn't seem to provide a syntax for actually specifying an empty list, which could solve this completely, there are two workarounds particularly worth mentioning, namely: Use postgresql-simple's } type instead, which can handle the empty case correctly. Note however that while specifying the postgresql type "int4"C is mandatory in the empty case, specifying the haskell type Values (Only Int): would not normally be needed in realistic use cases. kquery c "select * from whatever where id not in ?" (Only (Values ["int4"] [] :: Values (Only Int))) Use sql's COALESCE operator to turn a logical nulld into the correct boolean. Note however that the correct boolean depends on the use case: equery c "select * from whatever where coalesce(id NOT in ?, TRUE)" (Only (In [] :: In [Int])) bquery c "select * from whatever where coalesce(id IN ?, FALSE)" (Only (In [] :: In [Int]))LNote that at as of PostgreSQL 9.4, the query planner cannot see inside the COALESCE' operator, so if you have an index on id= then you probably don't want to write the last example with COALESCEF, which would result in a table scan. There are further caveats if idA can be null or you want null treated sensibly as a component of IN or NOT IN.A single-value "collection".vThis is useful if you need to supply a single parameter to a SQL query, or extract a single column from a SQL result.Parameter example: ,query c "select x from scores where x > ?" ( (42::Int))Result example: 3xs <- query_ c "select id from users" forM_ xs $ \( id) -> {- ... -}A query string. This type is intended to make it difficult to construct a SQL query by concatenating string fragments, as that is an extremely common way to accidentally introduce SQL injection vulnerabilities into an application.This type is an instance of 0<, so the easiest way to construct a query is to enable the OverloadedStringsF language extension and then simply write the query in double quotes. `{-# LANGUAGE OverloadedStrings #-} import Database.PostgreSQL.Simple q :: Query q = "select ?"The underlying type is a 1g, and literal Haskell strings that contain Unicode characters will be correctly transformed to UTF-8.!A placeholder for the PostgreSQL DEFAULT value.A placeholder for the SQL NULL value. "foo.bar" will get turned into &QualifiedIdentifier (Just "foo") "bar" , while "foo" will get turned into !QualifiedIdentifier Nothing "foo". Note this instance is for convenience, and does not match postgres syntax. It only examines the first period character, and thus cannot be used if the qualifying identifier contains a period for example.%  33 (c) 2011-2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QR,,v is a quasiquoter that eases the syntactic burden of writing big sql statements in Haskell source code. For example: O{-# LANGUAGE QuasiQuotes #-} query conn [sql| SELECT column_a, column_b FROM table1 NATURAL JOIN table2 WHERE ? <= time AND time < ? AND name LIKE ? ORDER BY size DESC LIMIT 100 |] (beginTime,endTime,string)=This quasiquoter returns a literal string expression of type , and attempts to mimimize whitespace; otherwise the above query would consist of approximately half whitespace when sent to the database backend. It also recognizes and strips out standard sql comments "--".The implementation of the whitespace reducer is currently incomplete. Thus it can mess up your syntax in cases where whitespace should be preserved as-is. It does preserve whitespace inside standard SQL string literals. But it can get confused by the non-standard PostgreSQL string literal syntax (which is the default setting in PostgreSQL 8 and below), the extended escape string syntax, quoted identifiers, and other similar constructs.Of course, this caveat only applies to text written inside the SQL quasiquoter; whitespace reduction is a compile-time computation and thus will not touch the string. parameter above, which is a run-time value.3Also note that this will not work if the substring |] is contained in the query.,23,,,23 @(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone $(029;QR -=A type that may be used as a single parameter to a SQL query..;How to render an element when substituting it into a query./ZRender without escaping or quoting. Use for non-text types such as numbers, when you are certaind that they will not introduce formatting vulnerabilities via use of characters such as spaces or "'".0Escape and enclose in quotes before substituting. Use for all text-like types, and anything else that may contain unsafe characters when rendered.1 Escape binary data for use as a bytea= literal. Include surrounding quotes. This is used by the  newtype wrapper.2lEscape before substituting. Use for all sql identifiers like table, column names, etc. This is used by the  newtype wrapper.3*Concatenate a series of rendering actions.65Prepare a value for substitution into a query string.7"Convert a Haskell value to a JSON 4 using 5# and convert that to a field using 6.7This can be used as the default implementation for the 6J method for Haskell types that have a JSON representation in PostgreSQL.81Surround a string with single-quote characters: "'"This function does not perform any other escaping.:-./0123667879:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef -6./012378 ./0123-6784-6./012367879:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef(c) 2011-2015 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone !"$(0IQR xException thrown if a E could not be formatted correctly. This may occur if the number of '?S' characters in the query string does not match the number of parameters provided.}Exception thrown if query is used to perform an INSERT-like operation, or execute is used to perform a SELECT-like operation.4A Field represents metadata about a particular fieldYou don't particularly want to retain these structures for a long period of time, as they will retain the entire query result, not just the field metadataOThis returns the type oid associated with the column. Analogous to libpq's PQftype.0Default information for setting up a connection.Defaults are as follows: Server on  localhostPort on 5432User postgres No password Database postgres Use as in the following example: =connect defaultConnectInfo { connectHost = "db.example.com" }gConnect with the given username to the given database. Will throw an exception if it cannot connect.HAttempt to make a connection based on a libpq connection string. See  Nhttps://www.postgresql.org/docs/9.5/static/libpq-connect.html#LIBPQ-CONNSTRING for more information. Also note that environment variables also affect parameters not provided, parameters provided as the empty string, and a few other things; see  <https://www.postgresql.org/docs/9.5/static/libpq-envars.htmlW for details. Here is an example with some of the most commonly used parameters: &host='db.somedomain.com' port=5432 ...This attempts to connect to db.somedomain.com:54326. Omitting the port will normally default to 5432.On systems that provide unix domain sockets, omitting the host parameter will cause libpq to attempt to connect via unix domain sockets. The default filesystem path to the socket is constructed from the port number and the DEFAULT_PGSOCKET_DIR constant defined in the pg_config_manual.h? header file. Connecting via unix sockets tends to use the peerP authentication method, which is very secure and does not require a password._On Windows and other systems without unix domain sockets, omitting the host will default to  localhost. @... dbname='postgres' user='postgres' password='secret \' \\ pw'-This attempts to connect to a database named postgres with user postgres and password  secret ' \ pwm. Backslash characters will have to be double-quoted in literal Haskell strings, of course. Omitting dbname and userS will both default to the system username that the client process is running as. Omitting password9 will default to an appropriate password found in the pgpassK file, or no password at all if a matching line is not found. See  <https://www.postgresql.org/docs/9.5/static/libpq-pgpass.html- for more information regarding this file.As all parameters are optional and the defaults are sensible, the empty connection string can be useful for development and exploratory use, assuming your system is set up appropriately.On Unix, such a setup would typically consist of a local postgresql server listening on port 5432, as well as a system user, database user, and database sharing a common name, with permissions granted to the user on the database..On Windows, in addition you will either need  pg_hba.conf to specify the use of the trust authentication method for the connection, which may not be appropriate for multiuser or production machines, or you will need to use a pgpass file with the password or md5 authentication methods.See  Ehttps://www.postgresql.org/docs/9.5/static/client-authentication.html> for more information regarding the authentication process.SSL/TLS will typically "just work" if your postgresql server supports or requires it. However, note that libpq is trivially vulnerable to a MITM attack without setting additional SSL connection parameters. In particular, sslmode needs to be set to require,  verify-ca, or  verify-full3 in order to perform certificate validation. When sslmode is require(, then you will also need to specify a  sslrootcert file, otherwise no validation of the server's identity will be performed. Client authentication via certificates is also possible via the sslcert and sslkey parameters. See  9https://www.postgresql.org/docs/9.5/static/libpq-ssl.html5 for detailed information regarding libpq and SSL.Turns a q/ data structure into a libpq connection string. A version of execute* that does not perform query substitution.GAtomically perform an action with the database handle, if there is one.Quote bytestring or throw xUghijklmnopqrstuvwxyz{|}~Connection for string escapingQuery for message error$List of parameters for message errorAction to buildLghijklmnopqrstuvwxyz{|}~U}~xyz{|qrstuvwmnopjklghi3ghijklmnopqrstuvwxyz{|}~((c) 2012-2013 Leonid Onokhov, Joey AdamsBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone !"$(0QRThe field is a column name*Table name and name of violated constraintName of violated constraint.Relation name (usually table), constraint name*Name of the exclusion violation constraintTries to convert  to ConstrainViolationC, checks sqlState and succeedes only if able to parse sqlErrorMsg. createUser = catchJust constraintViolation catcher $ execute conn ... where catcher UniqueViolation "user_login_key" = ... catcher _ = ...;Like constraintViolation, but also packs original SqlError. createUser = catchJust constraintViolationE catcher $ execute conn ... where catcher (_, UniqueViolation "user_login_key") = ... catcher (e, _) = throwIO ezCatches SqlError, tries to convert to ConstraintViolation, re-throws on fail. Provides alternative interface to catchJust createUser = catchViolation catcher $ execute conn ... where catcher _ (UniqueViolation "user_login_key") = ... catcher e _ = throwIO e89:;<   89:;<(c) 2011-2012 Leon P SmithBSD3leon@melding-monads.comNone$(QR=  =>(c) 2011-2015 Leon P Smith (c) 2012 Joey AdamsBSD3leon@melding-monads.com experimentalNone !"#$(QRGReturns a single notification. If no notifications are available,  blocks until one arrives.It is safe to call  on a connection that is concurrently being used for other purposes, note however that PostgreSQL does not deliver notifications while a connection is inside a transaction.Non-blocking variant of `. Returns a single notification, if available. If no notifications are available, returns .Returns 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! ?? @(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone $(69:;QR4?A collection type that can be turned into a list of rendering .s.Instances should use the 6 method of the -@ class to perform conversion of each element of the collection.@A4545455@A455<(c) 2011-2013 Leon P Smith (c) 2013 Joey AdamsBSD3&Leon P Smith <leon@melding-monads.com>None !"$(QRTIthe read-write mode will be taken from PostgreSQL's per-connection default_transaction_read_onlyi variable, which is initialized according to the server's config. The default configuration is .Of the four isolation levels defined by the SQL standard, these are the three levels distinguished by PostgreSQL as of version 9.0. See  ?https://www.postgresql.org/docs/9.5/static/transaction-iso.html= for more information. Note that prior to PostgreSQL 9.0,   was equivalent to  .Ithe isolation level will be taken from PostgreSQL's per-connection default_transaction_isolationi variable, which is initialized according to the server's config. The default configuration is  .+Execute an action inside a SQL transaction..This function initiates a transaction with a "begin transactionr" statement, then executes the supplied action. If the action succeeds, the transaction will be completed with   before this function returns.If the action throws anyj kind of exception (not just a PostgreSQL-related exception), the transaction will be rolled back using &, then the exception will be rethrown.For nesting transactions, see .Execute an action inside of a   transaction. If a serialization failure occurs, roll back the transaction and try again. Be warned that this may execute the IO action multiple times.A   transaction creates the illusion that your program has exclusive access to the database. This means that, even in a concurrent setting, you can perform queries in sequence without having to worry about what might happen between one statement and the next. Think of it as STM, but without retry.HExecute an action inside a SQL transaction with a given isolation level.IExecute an action inside a SQL transaction with a given transaction mode.Like Z, but also takes a custom callback to determine if a transaction should be retried if an  occurs. If the callback returns True, then the transaction will be retried. If the callback returns False, or an exception other than an M occurs then the transaction will be rolled back and the exception rethrown.This is used to implement .Rollback a transaction.B%Rollback a transaction, ignoring any IOErrorsCommit a transaction.Begin a transaction.0Begin a transaction with a given isolation level1Begin a transaction with a given transaction modeCreate a savepoint, and roll back to it if an error occurs. This may only be used inside of a transaction, and provides a sort of "nested transaction".See =https://www.postgresql.org/docs/9.5/static/sql-savepoint.htmlGCreate a new savepoint. This may only be used inside of a transaction.,Destroy a savepoint, but retain its effects.Warning: this will throw a  matching 2 if the transaction is aborted due to an error. " would merely warn and roll back.?Roll back to a savepoint. This will not release the savepoint.@Roll back to a savepoint and release it. This is like calling  followed by 2, but avoids a round trip to the database server.      B#     #          B(c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QR*$Returns an expression that has type   -> C1, true if the oid is equal to any one of the #s of the given s.+Literally substitute the # of a . expression. Returns an expression of type  5. Useful because GHC tends not to fold constants.*+DE*+*+*+DE(c) 2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalSafe$(MQR0DParse one of three primitive field formats: array, quoted and plain.2Recognizes a quoted string.3sRecognizes a plain string literal, not containing quotes or brackets and not containing the delimiter character.4]Format an array format item, using the delimiter character if the item is itself an array.5Format a list of array format items, inserting the appropriate delimiter between them. When the items are arrays, they will be delimited with commas; otherwise, they are delimited with the passed-in-delimiter.6Format an array format item, using the delimiter character if the item is itself an array, optionally applying quoting rules. Creates copies for safety when used in  FromField instances.7BEscape a string according to Postgres double-quoted string format. ,-./01234567 ,-./01234567 0,-./1234567 ,-./01234567(c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone!"$(QR?OReturns the metadata of the type with a particular oid. To find this data, ?! first consults pg's built-in +U table, then checks the connection's typeinfo cache. Finally, the database's pg_typej table will be queried only if necessary, and the result will be stored in the connections's cache.?FG !"#$%&'()*?? !"#$%&#$%&'#$%&(#$%&)*?FG?(c) 2011 MailRank, Inc. (c) 2011-2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone!"$(029;MQRT5*-A type that may be converted from a SQL type.@'Convert a SQL value to a Haskell value.yReturns a list of exceptions if the conversion fails. In the case of library instances, this will usually be a single B, but may be a UnicodeException.)Note that retaining any reference to the  argument causes the entire LibPQ.H, to be retained. Thus, implementations of @e should return results that do not refer to this value after the result have been evaluated to WHNF.Note that as of postgresql-simple-0.4.0.0, the 1+ value has already been copied out of the LibPQ.H before it has been passed to @b. This is because for short strings, it's cheaper to copy the string than to set up a finalizer.BJException thrown if conversion from a SQL value to a Haskell value fails.C-The SQL and Haskell types are not compatible.DA SQL NULL: was encountered when the Haskell type did not permit it.EThe SQL value could not be parsed, or could not be represented as a valid Haskell value, or an unexpected low-level error occurred (e.g. mismatch between metadata and actual data in a row).KReturns the data type name. This is the preferred way of identifying types that do not have a stable type oid, such as types provided by extensions to PostgreSQL.!More concretely, it returns the typname/ column associated with the type oid in the pg_type table. First, pg will check the built-in, static table. If the type oid is not there, pg will check a per-connection cache, and then finally query the database's meta-schema.NpReturns the name of the column. This is often determined by a table definition, but it can be set using an as clause.O)Returns the name of the object id of the table2 associated with the column, if any. Returns  when there is no such table; for example a computed column does not have a table associated with it. Analogous to libpq's PQftable.PIf the column has a table associated with it, this returns the number off the associated table column. Numbering starts from 0. Analogous to libpq's  PQftablecol.QbThis returns whether the data was returned in a binary or textual format. Analogous to libpq's  PQfformat.RFor dealing with SQL null values outside of the *( class. Alternatively, one could use !":, but that also turns type and conversion errors into 3, whereas this is more specific and turns only null values into .TParse a field to a JSON 4. and convert that into a Haskell value using I.7This can be used as the default implementation for the @J method for Haskell types that have a JSON representation in PostgreSQL.The JT constraint is required to show more informative error messages when parsing fails. Note that fromJSONField :: FieldParser (K Foo) will return  on the json null' value, and return an exception on SQL null* value. Alternatively, one could write R fromJSONField that will return Nothing on SQL null, and otherwise will call  fromJSONField :: FieldParser Foo and then return LL the result value, or return its exception. If one would like to return Nothing on both the SQL null and json null. values, one way to do it would be to write  \f mv -> #$ M! optionalField fromJSONField f mvU#Given one of the constructors from B, the field, and an Jv, this fills in the other fields in the exception value and returns it in a 'Left . SomeException' constructor.V)Compatible with the same set of types as a. Note that modifying the NM does not have any effects outside the local process on the local machine.W)Compatible with the same set of types as a. Note that modifying the OM does not have any effects outside the local process on the local machine.XjsonYuuid\=any postgresql array whose elements are compatible with type a]1Compatible with both types. Conversions to type b+ are preferred, the conversion to type a will be tried after the P conversion fails.^date_ timestamp` timestamptza timestamptzbtimecdated timestampe timestamptzf timestamptzg#name, text, "char", bpchar, varcharhcitexticitextj#name, text, "char", bpchar, varchark#name, text, "char", bpchar, varcharlbyteambytean3bytea, name, text, "char", bpchar, varchar, unknownooidp3bytea, name, text, "char", bpchar, varchar, unknownq)int2, int4, int8, float4, float8, numericr)int2, int4, int8, float4, float8, numerics/int2, int4, float4, float8 (Uses attoparsec's Q- routine, for better accuracy convert to R or S first)t#int2, float4 (Uses attoparsec's Q- routine, for better accuracy convert to R or S first)uint2, int4, int8vint2, int4, int8wfint2, int4, and if compiled as 64-bit code, int8 as well. This library was compiled as 64-bit code.x int2, int4yint2z"char"{bool|:compatible with any data type, but the value must be null}[For dealing with null values. Compatible with any postgresql type compatible with type au. Note that the type is not checked if the value is null, although it is inadvisable to rely on this behavior.~voidR*T@ABCDEFGHIJUKLMNOPQRVWXYZS[T\]^_`abcUdVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~3  !"#$%&'()**@giABCDEFGHIJKLMNOPQRSTUK*@AgiiBCDEFGHIJFGHIJFGHIJUK !"#$%&#$%&'#$%&(#$%&)*LMNOPQ SRTI*@TABCDEFGHIJFGHIJFGHIJUKLMNOPQRVWXYZS[T\]^_`abcUdVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~%(c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone $(0IQRFRepresents escape text, ready to be the key or value to a hstore valueRepresents valid hstore syntax.ehstorefhstoregAssumed to be UTF-8 encodedhAssumed to be UTF-8 encoded'ijklmneofpqrghstuijkijklmneofpqrghstu(c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QR(c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(QRE(c) 2014-2015 Leonid Onokhov (c) 2014-2015 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com>None $(029;QRGeneric range typeRepresents boundary of a range$Is a range empty? If this returns v , then the ! predicate will always return w!. However, if this returns wD, it is not necessarily true that there exists a point for which  returns v. Consider  (Excludes 2) (Excludes 3) :: PGRange Int, for example.Does a range contain a given point? Note that in some cases, this may not correspond exactly with a server-side computation. Consider UTCTimeN for example, which has a resolution of a picosecond, whereas postgresql's  timestamptz types have a resolution of a microsecond. Putting such Haskell values into the database will result in them being rounded, which can change the value of the containment predicate.xGeneric range parsery!Simple double quoted value parserz)Generic range to builder for plain values/{|x}y~z  *{|x}y~z (c) 2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone !"$(69:;QR+A collection type that can be converted from a sequence of fields. Instances are provided for tuples up to 10 elements and lists of any length.Note that instances can be defined outside of pg, which is often useful. For example, here's an instance for a user-defined pair: @data User = User { name :: String, fileQuota :: Int } instance +# User where fromRow = User <$>  <*>  The number of calls to _ must match the number of fields returned in a single row of the query result. Otherwise, a E exception will be thrown. Note that  evaluates its result to WHNF, so the caveats listed in mysql-simple and very early versions of pg no longer apply. Instead, look at the caveats associated with user-defined implementations of @.*++j+j(+@(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone !"#$(0MQR;Execute a multi-row INSERT, UPDATE=, or other SQL query that is not expected to return results.Returns the number of rows affected. If the list of parameters is empty, this function will simply return 0 without issuing the query to the backend. If this is not desired, consider using the Values constructor instead.Throws x6 if the query could not be formatted correctly, or a + exception if the backend returns an error.TFor example, here's a command that inserts two rows into a table with two columns: [executeMany c [sql| INSERT INTO sometable VALUES (?,?) |] [(1, "hello"),(2, "world")] :Here's an canonical example of a multi-row update command: executeMany c [sql| UPDATE sometable SET sometable.y = upd.y FROM (VALUES (?,?)) as upd(x,y) WHERE sometable.x = upd.x |] [(1, "hello"),(2, "world")] < Execute an INSERT, UPDATE=, or other SQL query that is not expected to return results.$Returns the number of rows affected.Throws x6 if the query could not be formatted correctly, or a + exception if the backend returns an error.= A version of >* that does not perform query substitution.> Perform a SELECT or other SQL query that is expected to return results. All results are retrieved and converted before this function returns.hWhen processing large results, this function will consume a lot of client-side memory. Consider using  instead.Exceptions that may be thrown:x4: the query string could not be formatted correctly.}>: the result contains no columns (i.e. you should be using < instead of >).B: result conversion failed.t: the postgresql backend returned an error, e.g. a syntax or type error, or an incorrect table or column name.%Number of rows to fetch at a time.  currently defaults to 256 rows, although it might be nice to make this more intelligent based on e.g. the average size of the rows.Format a query string.mThis function is exposed to help with debugging and logging. Do not use it to prepare queries for execution.LString parameters are escaped according to the character set in use on the .Throws x7 if the query string could not be formatted correctly.5Format a query string with a variable number of rows.mThis function is exposed to help with debugging and logging. Do not use it to prepare queries for execution.^The query string must contain exactly one substitution group, identified by the SQL keyword "VALUES&" (case insensitive) followed by an "(&" character, a series of one or more "?*" characters separated by commas, and a ")?" character. White space in a substitution group is permitted.Throws x7 if the query string could not be formatted correctly.Execute INSERT ... RETURNING, UPDATE ... RETURNING}, or other SQL query that accepts multi-row input and is expected to return results. Note that it is possible to write >$ conn "INSERT ... RETURNING ..." ...c in cases where you are only inserting a single row, and do not need functionality analogous to ;.FIf the list of parameters is empty, this function will simply return []Z without issuing the query to the backend. If this is not desired, consider using the Values constructor instead.Throws x/ if the query could not be formatted correctly. A version of > taking parser as argument A version of = taking parser as argument Perform a SELECT or other SQL query that is expected to return results. Results are streamed incrementally from the server, and consumed via a left fold.PWhen dealing with small results, it may be simpler (and perhaps faster) to use > instead. This fold is notk strict. The stream consumer is responsible for forcing the evaluation of its result to avoid space leaks.This is implemented using a database cursor. As such, this requires a transaction. This function will detect whether or not there is a transaction in progress, and will create a   n transaction if needed. The cursor is given a unique temporary name, so the consumer may itself call fold.Exceptions that may be thrown:x4: the query string could not be formatted correctly.}>: the result contains no columns (i.e. you should be using < instead of >).B: result conversion failed.t: the postgresql backend returned an error, e.g. a syntax or type error, or an incorrect table or column name. A version of  taking a parser as an argument defaults to , and     The same as ., but this provides a bit more control over lower-level details. Currently, the number of rows fetched per round-trip to the server and the transaction mode may be adjusted accordingly. If the connection is already in a transaction, then the existing transaction is used and thus the  option is ignored. A version of  taking a parser as an argument A version of * that does not perform query substitution. A version of  taking a parser as an argument A version of  taking a parser as an argument A version of ' that does not transform a state value. A version of  taking a parser as an argument A version of * that does not perform query substitution.&;<=>Query."Initial state for result consumer.Result consumer.Query."Initial state for result consumer.Result consumer.Query."Initial state for result consumer.Result consumer.Query template.Query parameters.Result consumer.Query template.Result consumer.b+4qrstuvwxyz{|}~;<=>BCDEFGHIJl4+xyz{|}~BCDEFGHIJFGHIJFGHIJqrstuvw>=<;!;<=>(c) 2013 Leon P SmithBSD3&Leon P Smith <leon@melding-monads.com> experimentalNone$(0QRlData representing either exactly one row of the result, or header or footer data depending on format.<No more rows, and a count of the number of rows returned.Issue a COPY FROM STDIN or COPY TO STDOUTG query. In the former case, the connection's state will change to CopyIn; in the latter, CopyOutp. The connection must be in the ready state in order to call this function. Performs parameter subsitution.Issue a COPY FROM STDIN or COPY TO STDOUTG query. In the former case, the connection's state will change to CopyIn; in the latter, CopyOutx. The connection must be in the ready state in order to call this function. Does not perform parameter subsitution.Retrieve some data from a COPY TO STDOUT) query. A connection must be in the CopyOut= state in order to call this function. If this returns a  , the connection remains in the CopyOut state, if it returns 9, then the connection has reverted to the ready state.Feed some data to a COPY FROM STDIN query. Note that the data does not need to represent a single row, or even an integral number of rows. The net result of (putCopyData conn a >> putCopyData conn b is the same as putCopyData conn c whenever c == BS.append a b.A connection must be in the CopyIn7 state in order to call this function, otherwise a : exception will result. The connection remains in the CopyIn( state after this function is called. Completes a COPY FROM STDIN1 query. Returns the number of rows processed.A connection must be in the CopyIn7 state in order to call this function, otherwise a j exception will result. The connection's state changes back to ready after this function is called. Aborts a COPY FROM STDINy query. The string parameter is simply an arbitrary error message that may show up in the PostgreSQL server's log.A connection must be in the CopyIn7 state in order to call this function, otherwise a j exception will result. The connection's state changes back to ready after this function is called.    &'(&')&'*&'+&,-&,.&,/&,0&,123423523623723723823923:23;23<23=23>23?23@23A23B23CDDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~44         !"#$%&'()*+,-./0123456789:;<=>?@ABCD E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                   - !"# $%&'()*+,-./0123456789:II;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~%%%%%%%%%%%%%%%%%%%%%%                                    &   &&& !""#$%&'()* !+,-.&/0123 4 567869: ; <=>?@AB&CDE F GHIJKLMNO23P6QR&ST&U&V&WX&YZ&[\&]^_`abc&defghijklmnopqrstuv%w%x%y%z%{%|%}%~%%%%%%%%%IJIJ        !pg-0.5.2.1-5RqIgcg6pzh2N8i86AZKWe'Database.PostgreSQL.Simple.LargeObjects$Database.PostgreSQL.Simple.FromField Database.PostgreSQL.Simple.TypesDatabase.PostgreSQL.Simple#Database.PostgreSQL.Simple.TypeInfo*Database.PostgreSQL.Simple.TypeInfo.StaticDatabase.PostgreSQL.Simple.Ok(Database.PostgreSQL.Simple.Time.InternalDatabase.PostgreSQL.Simple.Time"Database.PostgreSQL.Simple.FromRow Database.PostgreSQL.Simple.SqlQQ"Database.PostgreSQL.Simple.ToField Database.PostgreSQL.Simple.ToRow#Database.PostgreSQL.Simple.Internal!Database.PostgreSQL.Simple.Errors'Database.PostgreSQL.Simple.Notification&Database.PostgreSQL.Simple.Transaction)Database.PostgreSQL.Simple.TypeInfo.Macro!Database.PostgreSQL.Simple.Arrays!Database.PostgreSQL.Simple.HStore*Database.PostgreSQL.Simple.HStore.Internal Database.PostgreSQL.Simple.RangeDatabase.PostgreSQL.Simple.Copy)Database.PostgreSQL.Simple.TypeInfo.Types!Database.PostgreSQL.Simple.Compat/Database.PostgreSQL.Simple.Time.Internal.Parser0Database.PostgreSQL.Simple.Time.Internal.Printer.Database.PostgreSQL.Simple.Time.Implementation executeMany returningBasecommitControl.Applicativeoptional Control.Monadjoin0Database.PostgreSQL.Simple.HStore.Implementationbase GHC.IO.Device SeekFromEnd RelativeSeek AbsoluteSeekSeekMode GHC.IO.IOMode ReadWriteMode AppendMode WriteModeReadModeIOMode.postgresql-libpq-0.9.3.0-3hQCxFsBezA9tQ0YdNvQtDatabase.PostgreSQL.LibPQBinaryTextFormatOid SingleTuple FatalError NonfatalError BadResponseCopyBothCopyInCopyOutTuplesOk CommandOk EmptyQuery ExecStatusLoFd AttributeattnameatttypeTypeInfoBasicArrayRange Compositetypoid typcategorytypdelimtypnametypelem rngsubtypetyprelid attributesstaticTypeInfoboolbyteacharnameint8int2int4regproctextoidtidxidcidxmlpointlsegpathboxpolygonlinecidrfloat4float8unknowncirclemoneymacaddrinetbpcharvarchardatetime timestamp timestamptzintervaltimetzbitvarbitnumeric refcursorrecordvoid array_record regprocedureregoper regoperatorregclassregtypeuuidjsonjsonb int2vector oidvector array_xml array_json array_line array_cidr array_circle array_money array_bool array_bytea array_char array_name array_int2array_int2vector array_int4 array_regproc array_text array_tid array_xid array_cidarray_oidvector array_bpchar array_varchar array_int8 array_point array_lseg array_path array_box array_float4 array_float8 array_polygon array_oid array_macaddr array_inetarray_timestamp array_date array_timearray_timestamptzarray_interval array_numeric array_timetz array_bit array_varbitarray_refcursorarray_regprocedure array_regoperarray_regoperatorarray_regclass array_regtype array_uuid array_jsonb int4range _int4rangenumrange _numrangetsrange_tsrange tstzrange _tstzrange daterange _daterange int8range _int8range ManyErrorsOkErrors$fExceptionManyErrors $fMonadOk $fMonadPlusOk$fAlternativeOk$fApplicativeOk$fEqOk$fShowOk $fFunctorOk$fShowManyErrors TimeZoneHMSDateZonedTimestamp UTCTimestampLocalTimestamp Unbounded NegInfinityFinite PosInfinity parseUTCTimeparseZonedTimeparseLocalTimeparseDayparseTimeOfDayparseUTCTimestampparseZonedTimestampparseLocalTimestamp parseDategetDaygetDate getTimeOfDay getLocalTimegetLocalTimestamp getTimeZonegetTimeZoneHMSlocalToUTCTimeOfDayHMS getZonedTimegetZonedTimestamp getUTCTimegetUTCTimestamp dayToBuildertimeOfDayToBuildertimeZoneToBuilderutcTimeToBuilderzonedTimeToBuilderlocalTimeToBuilderunboundedToBuilderutcTimestampToBuilderzonedTimestampToBuilderlocalTimestampToBuilder dateToBuildernominalDiffTimeToBuilderValues Savepoint:.PGArray fromPGArrayQualifiedIdentifier IdentifierfromIdentifier fromBinaryInOnlyfromOnlyQuery fromQueryDefaultNull$fIsStringQualifiedIdentifier$fHashableQualifiedIdentifier$fHashableIdentifier $fMonoidQuery$fIsStringQuery $fReadQuery $fShowQuery$fEqNull $fReadNull $fShowNull $fReadDefault $fShowDefault $fEqQuery $fOrdQuery$fEqOnly $fOrdOnly $fReadOnly $fShowOnly $fFunctorOnly$fEqIn$fOrdIn$fReadIn$fShowIn $fFunctorIn $fEqBinary $fOrdBinary $fReadBinary $fShowBinary$fFunctorBinary$fEqIdentifier$fOrdIdentifier$fReadIdentifier$fShowIdentifier$fIsStringIdentifier$fEqQualifiedIdentifier$fOrdQualifiedIdentifier$fReadQualifiedIdentifier$fShowQualifiedIdentifier $fEqPGArray $fOrdPGArray $fReadPGArray $fShowPGArray$fFunctorPGArray$fEq:.$fOrd:.$fShow:.$fRead:. $fEqSavepoint$fOrdSavepoint$fShowSavepoint$fReadSavepoint $fEqValues $fOrdValues $fShowValues $fReadValues FromFieldFromRowsqlToFieldActionPlainEscape EscapeByteAEscapeIdentifierManyToRowtoRowtoField toJSONFieldinQuotes$fToFieldValues$fToFieldValue $fToFieldUUID$fToFieldVector$fToFieldPGArray$fToFieldNominalDiffTime$fToFieldUnbounded$fToFieldUnbounded0$fToFieldUnbounded1$fToFieldUnbounded2$fToFieldTimeOfDay $fToFieldDay$fToFieldLocalTime$fToFieldZonedTime$fToFieldUTCTime $fToFieldText $fToField[]$fToFieldText0$fToFieldByteString$fToFieldByteString0$fToFieldQualifiedIdentifier$fToFieldIdentifier$fToFieldBinary$fToFieldBinary0$fToFieldScientific$fToFieldDouble$fToFieldFloat $fToFieldOid$fToFieldWord64 $fToFieldWord$fToFieldWord32$fToFieldWord16$fToFieldWord8$fToFieldInteger$fToFieldInt64 $fToFieldInt$fToFieldInt32$fToFieldInt16 $fToFieldInt8 $fToFieldBool$fToFieldDefault $fToFieldNull $fToFieldIn$fToFieldMaybe$fToFieldAction $fShowAction Conversion runConversion RowParserRPunRPRowrow rowresult ConnectInfo connectHost connectPort connectUserconnectPasswordconnectDatabase FormatError fmtMessagefmtQuery fmtParams QueryError qeMessageqeQuerySqlErrorsqlState sqlExecStatus sqlErrorMsgsqlErrorDetail sqlErrorHint ConnectionconnectionHandleconnectionObjectsconnectionTempNameCounter TypeInfoCacheFieldresultcolumntypeOid fatalErrordefaultConnectInfoconnectconnectPostgreSQL connectdbpostgreSQLConnectionStringoid2intexecexecute_ finishExecutethrowResultErrordisconnectedErrorwithConnectionclosenewNullConnection liftRowParserliftConversion conversionMapconversionError newTempNamefdError libPQErrorthrowLibPQErrorfmtError fmtErrorBsquote buildAction checkError escapeWrapescapeStringConnescapeIdentifierescapeByteaConn$fMonadPlusConversion$fMonadConversion$fAlternativeConversion$fApplicativeConversion$fFunctorConversion$fExceptionFormatError$fExceptionQueryError$fExceptionSqlError$fEqConnection $fEqSqlError$fShowSqlError$fEqQueryError$fShowQueryError$fEqFormatError$fShowFormatError$fEqConnectInfo$fReadConnectInfo$fShowConnectInfo$fFunctorRowParser$fApplicativeRowParser$fAlternativeRowParser$fMonadRowParserConstraintViolationNotNullViolationForeignKeyViolationUniqueViolationCheckViolationExclusionViolationconstraintViolationconstraintViolationEcatchViolationisSerializationErrorisNoActiveTransactionErrorisFailedTransactionError$fExceptionConstraintViolation$fShowConstraintViolation$fEqConstraintViolation$fOrdConstraintViolationloCreatloCreateloImportloImportWithOidloExportloOpenloWriteloReadloSeekloTell loTruncateloCloseloUnlink NotificationnotificationPidnotificationChannelnotificationDatagetNotificationgetNotificationNonBlocking getBackendPID $fGToRowU1 $fGToRowK1 $fGToRow:*: $fGToRowM1 $fToRow:. $fToRow[]$fToRow(,,,,,,,,,)$fToRow(,,,,,,,,)$fToRow(,,,,,,,)$fToRow(,,,,,,)$fToRow(,,,,,) $fToRow(,,,,) $fToRow(,,,) $fToRow(,,) $fToRow(,) $fToRowOnly $fToRow()TransactionModeisolationLevel readWriteModeDefaultReadWriteMode ReadWriteReadOnlyIsolationLevelDefaultIsolationLevel ReadCommittedRepeatableRead SerializabledefaultTransactionModedefaultIsolationLeveldefaultReadWriteModewithTransactionwithTransactionSerializablewithTransactionLevelwithTransactionModewithTransactionModeRetryrollbackbegin beginLevel beginMode withSavepoint newSavepointreleaseSavepointrollbackToSavepointrollbackToAndReleaseSavepoint$fShowIsolationLevel$fEqIsolationLevel$fOrdIsolationLevel$fEnumIsolationLevel$fBoundedIsolationLevel$fShowReadWriteMode$fEqReadWriteMode$fOrdReadWriteMode$fEnumReadWriteMode$fBoundedReadWriteMode$fShowTransactionMode$fEqTransactionMode mkCompats inlineTypoid ArrayFormatQuoted arrayFormatarrayquotedplainfmtdelimitfmt'esc$fEqArrayFormat$fShowArrayFormat$fOrdArrayFormatexecutequery_query getTypeInfo fromField FieldParser ResultError IncompatibleUnexpectedNullConversionFailed errSQLTypeerrSQLTableOid errSQLFielderrHaskellType errMessagetypenametypeInfo typeInfoByOidtableOid tableColumnformat optionalFieldpgArrayFieldParser fromJSONField returnError$fFromFieldMVar$fFromFieldIORef$fFromFieldValue$fFromFieldUUID$fFromFieldMVector$fFromFieldVector$fFromFieldPGArray$fFromFieldEither$fFromFieldUnbounded$fFromFieldUnbounded0$fFromFieldUnbounded1$fFromFieldUnbounded2$fFromFieldTimeOfDay$fFromFieldDay$fFromFieldLocalTime$fFromFieldZonedTime$fFromFieldUTCTime $fFromField[] $fFromFieldCI$fFromFieldCI0$fFromFieldText$fFromFieldText0$fFromFieldBinary$fFromFieldBinary0$fFromFieldByteString$fFromFieldOid$fFromFieldByteString0$fFromFieldScientific$fFromFieldRatio$fFromFieldDouble$fFromFieldFloat$fFromFieldInteger$fFromFieldInt64$fFromFieldInt$fFromFieldInt32$fFromFieldInt16$fFromFieldChar$fFromFieldBool$fFromFieldNull$fFromFieldMaybe $fFromField()$fExceptionResultError$fEqResultError$fShowResultError HStoreMap fromHStoreMap HStoreListfromHStoreList HStoreText ToHStoreText toHStoreText HStoreBuilderEmptyCommaToHStoretoHStore toBuildertoLazyByteStringhstoreparseHStoreList parseHStoreparseHStoreKeyValparseHStoreTextPGRange RangeBound Inclusive Exclusiveempty isEmptyByisEmptycontains containsBy$fToFieldPGRange$fToFieldPGRange0$fToFieldPGRange1$fToFieldPGRange2$fToFieldPGRange3$fToFieldPGRange4$fToFieldPGRange5$fToFieldPGRange6$fToFieldPGRange7$fToFieldPGRange8$fToFieldPGRange9$fToFieldPGRange10$fToFieldPGRange11$fToFieldPGRange12$fToFieldPGRange13$fToFieldPGRange14$fToFieldPGRange15$fToFieldPGRange16$fToFieldPGRange17$fToFieldPGRange18$fToFieldPGRange19$fToFieldPGRange20$fToFieldPGRange21$fToFieldPGRange22$fFromFieldPGRange $fEqPGRange$fShowRangeBound$fEqRangeBound$fFunctorRangeBound $fShowPGRange$fFunctorPGRangefromRow fieldWithfieldnumFieldsRemaining $fGFromRowU1 $fGFromRowK1 $fGFromRow:*: $fGFromRowM1 $fFromRow:.$fFromRowMaybe$fFromRowVector$fFromRowMaybe0 $fFromRow[]$fFromRowMaybe1$fFromRow(,,,,,,,,,)$fFromRowMaybe2$fFromRow(,,,,,,,,)$fFromRowMaybe3$fFromRow(,,,,,,,)$fFromRowMaybe4$fFromRow(,,,,,,)$fFromRowMaybe5$fFromRow(,,,,,)$fFromRowMaybe6$fFromRow(,,,,)$fFromRowMaybe7$fFromRow(,,,)$fFromRowMaybe8 $fFromRow(,,)$fFromRowMaybe9 $fFromRow(,)$fFromRowMaybe10 $fFromRowOnly FoldOptions fetchQuantitytransactionMode FetchQuantity AutomaticFixed formatQuery formatMany returningWith queryWith queryWith_foldfoldWithdefaultFoldOptionsfoldWithOptionsfoldWithOptionsAndParserfold_ foldWith_foldWithOptions_foldWithOptionsAndParser_forEach forEachWithforEach_ forEachWith_ CopyOutResult CopyOutRow CopyOutDonecopycopy_ getCopyData putCopyData putCopyEnd putCopyError$fEqCopyOutResult$fShowCopyOutResultmaskGHC.IO toByteStringtoPicofromPico Data.Monoid<> GHC.IO.UnsafeunsafeDupablePerformIO*scientific-0.3.4.10-GfQ9YmUe7HpBhQeJU6cem3!Data.Text.Lazy.Builder.ScientificscientificBuilderday twoDigits timeOfDaysecondstimeZoneGHC.BaseNothing timeZoneHMS localTimeutcTime zonedTime UTCOffsetHMSutcliftBdigitdigits2digits3digits4fracyearnominalDiffTime getUnbounded$fReadUnbounded$fShowUnbounded Data.StringIsStringbytestring-0.10.8.1Data.ByteString.Internal ByteStringsqlExp minimizeSpace$aeson-1.1.0.0-FSe6b2MNv73HWbXsRT2XeFData.Aeson.Types.InternalValueData.Aeson.Types.ToJSONtoJSON renderNullinterleaveFoldr scanTillQuoteparseQ1parseQ2 parseMaybe isSqlStateliftPQSystem.Posix.TypesCPid convertNoticeGToRowgtoRow rollback_ghc-prim GHC.TypesBool inlineTypoidP getTypoid getTypeInfo' getAttInfosResultData.Aeson.Types.FromJSONfromJSONData.Typeable.InternalTypeableMaybeJust Data.Functor<$>GHC.MVarMVar GHC.IORefIORef Data.EitherRight*attoparsec-0.13.1.0-5VY8nM4BZKxBD9T3fYmCBm Data.Attoparsec.ByteString.Char8doubleData.Scientific ScientificGHC.RealRationalCompatleftunBinary pg_double pg_rational unescapeByteaff fromArrayokTextokText'okBinaryok16ok32ok64okInt doFromFieldatto$fFromFieldHStoreList$fToHStoreHStoreList$fToHStoreTextByteString$fToHStoreTextByteString0 escapeAppendskipWhiteSpaceparseHStoreTexts$fFromFieldHStoreMap$fToFieldHStoreMap$fToHStoreHStoreMap$fToFieldHStoreList$fToFieldHStoreBuilder$fToHStoreTextText$fToHStoreTextText0$fToHStoreTextHStoreText$fMonoidHStoreBuilder$fToHStoreHStoreBuilderTrueFalsepgrange doubleQuotedrangeToBuilderBy lowerBound upperBound rangeElemrangeToBuilder cmpZonedTimecmpZonedTimestampGFromRowgfromRowgetvaluenfieldsgetTypeInfoByColgetTypenameByColellipsisnull parseTemplate buildQuerydoFoldforM'foldM'finishQueryWith getRowWithdoCopydoCopyIngetCopyCommandTagconsumeResults