Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document how auto-create table works #29

Merged
merged 2 commits into from
May 21, 2023

Conversation

mkindahl
Copy link
Collaborator

No description provided.

When a metric is received that does not have a corresponding table, it will
search for a function named `_create` in the schema where the extension is
installed. If such a function is found, it will be called with the metric, an
array of tags, and an array of field names that was part of the packet. If the
function returns an OID of a relation, that will be used to as target for the
row. If `InvalidOid` is returned, it is assumed that no table is created and
the row will be ignored.
@mkindahl mkindahl changed the title Auto create table docs docs: document how auto-create table works May 21, 2023
@mkindahl mkindahl linked an issue May 21, 2023 that may be closed by this pull request
@mkindahl mkindahl merged commit 228dd2f into timescale:main May 21, 2023
@mkindahl mkindahl deleted the auto-create-table-docs branch May 21, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-create tables
1 participant