-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fabrízio de Royes Mello <fabrizio@ongres.com>
- Loading branch information
1 parent
e92e73c
commit 8caecb5
Showing
5 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
*.so | ||
*.o | ||
*.bc | ||
*.gc* | ||
*.gc* | ||
/log/ | ||
/tmp_check/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE EXTENSION pgotel; | ||
SELECT pgotel_counter('foo', -1); | ||
ERROR: counter value cannot be negative | ||
SELECT pgotel_counter('foo', 0, '{}'); | ||
ERROR: invalid labels JSONB | ||
SELECT pgotel_counter('foo', 0, NULL); | ||
ERROR: labels cannot be NULL | ||
SELECT pgotel_counter('foo', NULL); | ||
ERROR: counter value cannot be negative | ||
SELECT pgotel_counter(NULL, 0); | ||
ERROR: counter name cannot be NULL | ||
SELECT pgotel_counter(NULL, NULL); | ||
ERROR: counter name cannot be NULL | ||
SELECT pgotel_counter('foo', 0, '{"dbname": "foo", "schemaname": "bar", "relname": "baz"}'); | ||
pgotel_counter | ||
---------------- | ||
|
||
(1 row) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE EXTENSION pgotel; | ||
|
||
SELECT pgotel_counter('foo', -1); | ||
SELECT pgotel_counter('foo', 0, '{}'); | ||
SELECT pgotel_counter('foo', 0, NULL); | ||
SELECT pgotel_counter('foo', NULL); | ||
SELECT pgotel_counter(NULL, 0); | ||
SELECT pgotel_counter(NULL, NULL); | ||
SELECT pgotel_counter('foo', 0, '{"dbname": "foo", "schemaname": "bar", "relname": "baz"}'); |