Code

postrr.git
12 years agoCData: Added cdata_update().
Sebastian Harl [Thu, 10 May 2012 12:35:54 +0000 (14:35 +0200)]
CData: Added cdata_update().

This function may be used to update an existing data set by "merging" another
data set according to the consolidation function.

12 years agoRRTimeslice: added a cast to timestamp.
Sebastian Harl [Wed, 9 May 2012 15:24:19 +0000 (17:24 +0200)]
RRTimeslice: added a cast to timestamp.

12 years agoRRTimeslice: Changed all comparison operators to compare SEQ only.
Sebastian Harl [Tue, 8 May 2012 13:51:13 +0000 (15:51 +0200)]
RRTimeslice: Changed all comparison operators to compare SEQ only.

Else, a b-tree won't work (d'oh!).

12 years agorrtimeslice: Added hash function and operator class.
Sebastian Harl [Thu, 3 May 2012 19:44:08 +0000 (21:44 +0200)]
rrtimeslice: Added hash function and operator class.

12 years agopgtest.sh: Pass additional arguments to client and start.
Sebastian Harl [Mon, 30 Apr 2012 14:29:31 +0000 (16:29 +0200)]
pgtest.sh: Pass additional arguments to client and start.

Also, check for any additional arguments in all other commands.

12 years agoCData: Added casts from integer and numeric to cdata.
Sebastian Harl [Mon, 30 Apr 2012 12:52:34 +0000 (14:52 +0200)]
CData: Added casts from integer and numeric to cdata.

Both casts are marked 'AS ASSIGNMENT'.

12 years agoCData: Use float8 rather than double.
Sebastian Harl [Mon, 30 Apr 2012 12:51:30 +0000 (14:51 +0200)]
CData: Use float8 rather than double.

This makes the storage size explicit.

12 years agouninstall_postrr.sql: Drop CData type and all related functions, casts, too.
Sebastian Harl [Sun, 29 Apr 2012 18:50:06 +0000 (20:50 +0200)]
uninstall_postrr.sql: Drop CData type and all related functions, casts, too.

12 years agoCData: Added support for a type modifier.
Sebastian Harl [Sun, 29 Apr 2012 18:49:12 +0000 (20:49 +0200)]
CData: Added support for a type modifier.

The type modifier may be any of 'MIN', 'AVG', 'MAX', specifying the
consolidation function to be used.

12 years agoCData: fixed typo: RRTIMESLICE → CDATA.
Sebastian Harl [Sun, 29 Apr 2012 18:39:58 +0000 (20:39 +0200)]
CData: fixed typo: RRTIMESLICE → CDATA.

Since the affected macro basically did the same, this error did not matter
much, though.

12 years agoAdded initial version of the CData data type.
Sebastian Harl [Sat, 28 Apr 2012 17:35:57 +0000 (19:35 +0200)]
Added initial version of the CData data type.

For now, the type provides simple input and output functions only.

12 years agopgtest.sh: Added a small helper script to setup/run a PG test setup.
Sebastian Harl [Sat, 28 Apr 2012 15:57:02 +0000 (17:57 +0200)]
pgtest.sh: Added a small helper script to setup/run a PG test setup.

12 years agoInitial import of PostRR -- the PostgreSQL Round-Robin Extension. postrr-0.0.0
Sebastian Harl [Sat, 28 Apr 2012 15:33:10 +0000 (17:33 +0200)]
Initial import of PostRR -- the PostgreSQL Round-Robin Extension.

For now, this is an early and highly experimental incomplete draft ;-)

The current version provides a new data type "RRTimeslice" implementing basic
round-robin features. It is defined by the length of the slice and the number
of slices before wrapping around, both specified using the type modifier. It
provides basic comparison operators and an operator class for the btree
indexing method.