Package me.ahoo.cosid.jdbc
Class PostgreSqlDialect
java.lang.Object
me.ahoo.cosid.jdbc.PostgreSqlDialect
PostgreSQL versions of the SQL that defaults to MySQL syntax.
The machine id distributor's statements are standard SQL and need no change; the DDL and the segment statements
use MySQL-only syntax (unsigned, engine, unix_timestamp()). Pass these to
JdbcIdSegmentInitializer, JdbcIdSegmentDistributorFactory and JdbcMachineIdInitializer, or to the
matching cosid.segment.distributor.jdbc.* and cosid.machine.distributor.jdbc.* properties.
- Since:
- 3.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMigration of acosid_machinetable created before 4.0, for the lease columns ofJdbcMachineLeaseStore.static final StringMigration of acosid_machinetable created before thestablecolumn existed.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringCurrent time of the server in milliseconds, forJdbcMachineLeaseStore. -
Method Summary
-
Field Details
-
INIT_COSID_TABLE_SQL
- See Also:
-
INIT_ID_SEGMENT_SQL
- See Also:
-
INCREMENT_MAX_ID_SQL
- See Also:
-
FETCH_MAX_ID_SQL
- See Also:
-
INIT_COSID_MACHINE_TABLE_SQL
- See Also:
-
INIT_NAMESPACE_IDX_SQL
- See Also:
-
INIT_INSTANCE_ID_IDX_SQL
- See Also:
-
ADD_STABLE_COLUMN_SQL
Migration of acosid_machinetable created before thestablecolumn existed.- See Also:
-
ADD_LEASE_COLUMNS_SQL
Migration of acosid_machinetable created before 4.0, for the lease columns ofJdbcMachineLeaseStore.- See Also:
-
SERVER_TIME_SQL
Current time of the server in milliseconds, forJdbcMachineLeaseStore.- See Also:
-