20 Commits

Author SHA1 Message Date
Michael J. Freedman
6e193c6ec9 Add contributions section in README, error messages to style guide 2018-06-28 23:11:53 -04:00
Rob Kiefer
4888bd8635 Remove out-dated docs/API in favor of docs.timescale.com 2017-07-10 10:44:21 -04:00
Matvey Arye
cedcafc959 Remove setup_timescaledb() and fix pg_dump/pg_restore.
This PR removes the need to run setup_timescaledb. It also fixes
pg_dump and pg_restore. Previously, the database would restore in
a broken state because trigger functions were never attached to
meta tables (since setup_timescaledb() was not run). However, attaching
those triggers at extension creation also causes problems since the data
copy happens after extension creation but we don't want triggers fired
on the data restored (that could cause duplicate rows, for example).

The solution to this chicken-and-egg problem in this PR is to have
a special configuration (GUC) variable `timescaledb.restoring` that,
if 'on', would prevent the extension from attaching triggers at
extension creation. Then, after restoration, you'd call
restore_timescaledb() to attach the triggers and unset the GUC above.
This procedure is documented in the README as part of this PR.
2017-05-22 16:12:21 -04:00
Solar Olugebefola
1ab3c634cc Fix typos 2017-05-16 10:28:36 -04:00
Matvey Arye
662be94d69 Add the first(value, time),last(value, time) aggregates
Add the first and last aggregate functions, which allows for getting
the first and last value, by time, per group. Addresses issue #30.
2017-05-16 09:46:49 -04:00
Olof Rensfelt
1c4868d754 Add documentation for chunk_time_interval argument 2017-05-04 12:20:27 -04:00
Matvey Arye
c3f930f6c8 Add time_bucket functions
Adds functions to bucket timestamps. These functions are more
powerful versions of date_trunc, since they can take arbitrary
intervals.
2017-05-03 15:40:49 -04:00
Rob Kiefer
39f4c0fd6e Remove sample data instructions and point to docs site
This commit directs users to our docs site for using sample data
so we don't have to keep both places in sync.
2017-04-26 13:22:07 -04:00
Erik Nordström
d27462e23f Add code style guide
This code style doc adds information about code style and formatting
as well as information on tools and editors.
2017-04-20 15:04:29 +02:00
Rob Kiefer
4c050ad815 Update sample queries' results for datasets 2017-03-22 18:56:00 -04:00
Rob Kiefer
cb90eef350 Rename setup_db() and fix port for local connections
If a user attempts to setup a database while not connecting using
the network, port is NULL and thus fails constraint checks. Instead,
we now use the default Postgres port of 5432 when this happens.

Also, setup_db() is renamed to setup_timescaledb() for clarity in
the presence of other extensions.
2017-03-22 09:26:03 -04:00
Rob Kiefer
a089baf9b7 Clarify on UsingSamples.md that dataset names are clickable 2017-03-10 12:52:23 -05:00
Rob Kiefer
fbd079f242 Update sample query output on UsingSamples.md
With update to TimescaleDB, we needed to create
new datasets. This commit updates the sample
output to reflect the new datasets.
2017-03-07 14:57:20 -05:00
Rob Kiefer
aefb6a2d19 Add an API reference in Markdown and update README 2017-03-07 14:34:06 -05:00
Rob Kiefer
ee3ad4678d Rename iobeamdb to TimescaleDB 2017-03-06 11:06:49 -05:00
RobAtticus NA
86d2e78894 Make sure UsingSamples steps are in ordered list 2017-03-01 20:33:50 +00:00
Rob Kiefer
bc05676166 Add examples to Sample readme 2017-02-23 13:49:24 -06:00
Ajay Kulkarni
c332f32dbf Readme edits for usability, clarity, consistency, and general awesomeness. 2017-02-13 19:07:10 -05:00
Rob Kiefer
027dc56085 Update sample doc instructions and add links 2017-02-09 14:36:42 -05:00
Rob Kiefer
a2198b7c72 Initial draft of sample docs. Update README 2017-02-02 12:44:25 -05:00