All Classes and Interfaces

Class
Description
This class holds all of the methods common to both Blobs and Clobs.
 
 
The main purpose of this class is to handle adaptive fetching process.
 
Implement this interface and register the its instance to ArrayAssistantRegistry, to let Postgres driver to support more array type.
Array assistants register here.
Utility for decoding arrays.
 
 
 
 
 
Array list implementation specific for storing PG array elements.
Utility for using arrays in requests.
Base class to implement ArrayEncoding.ArrayEncoder and provide multi-dimensional support.
 
Base support for primitive arrays.
Base class to provide support for Number based arrays.
Wraps an ArrayEncoding.AbstractArrayEncoder implementation and provides support for 2 or more dimensions using recursion.
Wraps an ArrayEncoding.AbstractArrayEncoder implementation and provides optimized support for 2 dimensions.
Provides the canonicalization/interning of String instances which contain only ascii characters, keyed by the byte[] representation (in ascii).
 
Instance used for inserting values into the cache.
Only used for lookups, never to actually store entries.
 
 
 
 
 
Driver-internal connection interface.
Base class for data sources and related classes.
This class is used as a cache key for simple statements that have no "returning columns".
Driver-internal statement interface.
Purpose of this object is to support batched query re write behaviour.
Internal class, it is not a part of public API.
This is an implementation of an InputStream from a large object.
This implements a basic output stream that writes to a LargeObject.
Helper class to handle boolean type of PostgreSQL.
A ByteStreamWriter that writes a java.nio.ByteBuffer to a byte array parameter.
A ByteStreamWriter that writes a java.nio.ByteBuffer to a byte array parameter.
Helper methods to parse java base types from byte arrays.
Simple stack structure for non-negative short values.
A class that can be used to set a byte array parameter by writing to an OutputStream.
Provides a target to write bytes to.
Stores information on the parsed JDBC query.
Creates an instance of CachedQuery for a given connection.
 
Serves as a cache key for CallableStatement.
Candidate host to be connected.
 
Fluent interface for specify common parameters for create Logical and Physical replication slot.
Fluent interface for specify common parameters for Logical and Physical replication.
Fluent interface for specify common parameters for Logical and Physical replication.
Logical replication slot specific parameters.
 
Physical replication slot specific parameters.
 
Start point for fluent API that build replication stream(logical or physical).
Parses oid and rows from a CommandComplete (B) message (end of Execute).
Common parameters for logical and physical replication.
Parameter list for V3 query strings that contain multiple statements.
V3 Query implementation for queries that involve multiple statements.
Handles protocol-specific connection setup.
ConnectionFactory implementation for version 3 (7.4+) connections.
 
Deprecated.
Bidirectional via copy stream protocol.
 
Copy bulk data from client into a PostgreSQL table very fast.
COPY FROM STDIN operation.
API for PostgreSQL COPY bulk data transfer.
Exchange bulk data between client and PostgreSQL database tables.
 
 
Anticipated flow of a COPY TO STDOUT operation:
 
 
Socket factory that uses Java's default truststore to validate server certificate.
Default implementation of PGXmlFactoryFactory that configures each factory per OWASP recommendations.
Information for "pending describe queue".
The Java SQL framework allows for multiple database drivers.
Perform a connect in a separate thread; supports getting the results from the original thread while enforcing a login timeout.
Utility class with constants of Driver information.
 
Representation of a particular character encoding.
Predicts encoding for error messages based on some heuristics.
In certain cases the encoding is not known for sure (e.g.
 
Deprecated.
This class stores supported escaped function.
Specifies whether a SELECT/CALL statement is used for the underlying SQL for JDBC escape call syntax: 'select' means to always use SELECT, 'callIfNoReturn' means to use CALL if there is no return parameter (otherwise use SELECT), and 'call' means to always use CALL.
Information for "pending execute queue".
 
Deprecated.
This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call.
Deprecated.
This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call.
 
 
This is an internal class to hold field metadata info like table name, column name, etc.
 
A stream that refuses to write more than a maximum number of bytes.
 
 
Keeps track of HostSpec targets in a global map.
 
 
 
 
 
 
 
This class provides a wrapper around a gettext message catalog that can provide a localized version of error messages.
Lists connections in preferred order.
Chooses a HostChooser instance based on the number of hosts and properties.
Describes the required server type.
Simple container for host and port.
Known state of a server.
 
A specialized class to store a list of int values, so it does not need auto-boxing.
Use Waffle-JNI to support SSPI authentication when PgJDBC is running on a Windows client and talking to a Windows server.
 
Deprecated.
Deprecated.
Since 42.0.0, see PGPoolingDataSource
Deprecated.
 
 
 
This class provides the basic methods required to run the interface, plus a pair of methods that provide InputStream and OutputStream classes for this object.
This class implements the large object interface to org.postgresql.
LazyCleaner is a utility class that allows to register objects for deferred cleanup.
 
 
A Key manager that only loads the keys, if necessary.
 
Deprecated.
Provide an SSLSocketFactory that is compatible with the libpq behaviour.
A CallbackHandler that reads the password from the console or returns the password given to its constructor.
 
 
 
LSN (Log Sequence Number) data which is a pointer to a location in the XLOG.
 
Caches values in simple least-recently-accessed order.
When the entry is not present in cache, this create action is used to create one.
Action that is invoked when the entry is removed from the cache.
 
 
MD5-based utility function to obfuscate passwords before network transmission.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
HostChooser that keeps track of known host statuses.
Represents a query that is ready for execution by backend.
Provide a SSLSocketFactory that allows SSL connections to be made without validating the server's certificate.
 
 
Error handler that silently suppresses all errors.
The methods in this class allow to cast nullable reference to a non-nullable one.
Optimised byte[] to number parser.
Helper class to instantiate objects.
Provides constants for well-known backend OIDs for the types we commonly use.
Operating system specifics
Abstraction of a list of parameters to be substituted into a Query.
Basic query parser infrastructure.
 
 
 
Array is used collect one column of query result data.
PGBinaryObject is a interface that classes extending PGobject can use to take advantage of more optimal binary encoding of the data type.
 
 
This represents the box datatype within org.postgresql.
Converts to and from the postgresql bytea datatype used by the backend.
 
This represents org.postgresql's circle datatype, consisting of a point and a radius.
 
 
This interface defines the public PostgreSQL extensions to java.sql.Connection.
 
This class segregates the minimal resources required for proper cleanup in case the connection has not been closed by the user code.
PostgreSQL implementation of ConnectionPoolDataSource.
InputStream for reading from a PostgreSQL COPY TO STDOUT operation.
OutputStream for buffered input into a PostgreSQL COPY FROM STDIN operation.
 
Some environment variables are intended to have same meaning as libpq describes here: https://www.postgresql.org/docs/current/libpq-envars.html
This implements a class that handles the PostgreSQL interval type.
 
 
This implements a line represented by the linear equation Ax + By + C = 0.
This implements a lseg (line segment) consisting of two points.
This implements a class that handles the PostgreSQL money and cash types.
This interface defines the public PostgreSQL extension for Notifications.
PGobject is a class used to describe unknown types An unknown type is any type that is unknown by JDBC Standards.
Returns a DataSource-ish thing based on a JNDI reference.
 
helps to read Password File.
This implements a path (a multiple segmented line, which may be closed).
It maps to the point datatype in org.postgresql.
This implements the polygon datatype within PostgreSQL.
PostgreSQL implementation of the PooledConnection interface.
Deprecated.
Since 42.0.0, instead of this class you should use a fully featured connection pool like HikariCP, vibur-dbcp, commons-dbcp, c3p0, etc.
 
All connection parameters that can be either set in JDBC URL, in Driver properties or in datasource setters.
 
routines to support PG properties
Deprecated.
As of 8.0, this interface is only present for backwards- compatibility purposes.
Api available only if connection was create with required for replication properties: PGProperty.REPLICATION and PGProperty.ASSUME_MIN_SERVER_VERSION.
 
Not tread safe replication stream (though certain methods can be safely called by different threads).
 
 
 
 
helps to read Connection Service File.
Simple DataSource which does not perform connection pooling.
 
 
This interface defines the public PostgreSQL extensions to java.sql.Statement.
Wrapper around the raw connection to the server that implements some basic primitives (reading/writing formatted data, doing string encoding, etc).
This class augments the Java built-in Time to allow for explicit setting of the time zone.
This class augments the Java built-in Timestamp to allow for explicit setting of the time zone.
This class is used to tokenize the text output of org.postgres.
The PostgreSQL implementation of XAResource.
 
XA-enabled DataSource implementation.
An ObjectFactory implementation for PGXADataSource-objects.
A convenience subclass of XAException which makes it easy to create an instance of XAException with a human-readable message, a Throwable cause, and an XA error code.
 
 
 
 
 
Deprecated.
Since 42.0.0, see PGPoolingDataSource
V3 ResultCursor implementation in terms of backend Portals.
Specifies which mode is used to execute queries to database: simple means ('Q' execute, no parse, no bind, text mode only), extended means always use bind/execute messages, extendedForPrepared means extended for prepared statements only.
Represents a provider of results.
 
 
This class is used for holding SQLState codes.
 
Wrapper class for SQLWarnings that provides an optimisation to add new warnings to the tail of the SQLWarning singly linked list, avoiding Θ(n) insertion time of calling #setNextWarning on the head.
Abstraction of a generic Query, hiding the details of any protocol-version-specific data needed to execute the query efficiently.
Abstracts the protocol-specific details of executing a query.
 
The action performs connection cleanup, so it is properly terminated from the backend point of view.
QueryExecutor implementation for the V3 protocol.
Cache key for a query that have some returning columns.
ReaderInputStream accepts a UTF-16 char stream (Reader) as input and converts it to a UTF-8 byte stream (InputStream) as output.
 
 
Abstracts the protocol-specific details of physic and logic replication.
Information returned on replication slot creation.
 
 
Extends a ReentrantLock for use in try-with-resources block.
Abstraction of a cursor over a returned resultset.
Callback interface for passing query results from the protocol-specific layer to the protocol-independent JDBC implementation code.
Empty implementation of ResultHandler interface.
Internal to the driver class, please do not use in the application.
Helper class that storing result info.
 
 
 
Enumeration for PostgreSQL versions.
Poor man's Statement & ResultSet, used for initial queries while we're still initializing the system.
 
 
 
Deprecated.
Parameter list for a single-statement V3 query.
V3 Query implementation for a single-statement query.
Provides a SSLSocketFactory that authenticates the remote server against an explicit pre-shared SSL certificate.
 
Host chooser that returns the single host.
Instantiates SocketFactory based on the PGProperty.SOCKET_FACTORY.
Data Modification Language inspection support.
Type information inspection support.
 
 
 
Represents PgStatement.cancel() state.
Timer task that sends statement.cancel() signal to support Statement.setQueryTimeout(int).
Wrapper around a length-limited InputStream.
The action deletes temporary file in case the user submits a large input stream, and then abandons the statement.
Misc utils for handling time and date values.
 
 
 
 
Class representing a row in a ResultSet.
 
 
 
This class helps with URL encoding and decoding.
Collection of utilities used by the protocol-level code.
 
Common interface for all V3 parameter list implementations.
 
 
 
A faster version of BufferedInputStream.
Provide a wrapper to a real SSLSocketFactory delegating all calls to the contained instance.