Skip to content

Commit

Permalink
Merge pull request #25 from fetchq/feature/23
Browse files Browse the repository at this point in the history
Add json triggered events
  • Loading branch information
marcopeg authored Dec 3, 2019
2 parents 9cc1c35 + 264da82 commit 987d138
Show file tree
Hide file tree
Showing 10 changed files with 2,797 additions and 37 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# FetchQ Changelog

## v2.1.0

- Adds `fetchq_queue_create_indexes(qname)` signature that generate per-queue indexes
based on informations read from the `sys_queues` table.
- Adds `fetchq_trigger_notify_as_json()` that can be attached to any table to emit a full
JSON representation of the event (INSERT; UPDATE; DELETE).
- Emits full JSON events for `fetchq_sys_queues` so that the client can subscribe to it and
honor the queue status.

## v2.0.0

- Introduces the `fetchq_catalog` schema where to collect all the FetchQ related tables
2 changes: 2 additions & 0 deletions Dockerfile-10.11
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM postgres:10.11
ADD ./extension /usr/share/postgresql/10/extension/
2 changes: 2 additions & 0 deletions Dockerfile-11.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM postgres:11.6
ADD ./extension /usr/share/postgresql/11/extension/
2 changes: 2 additions & 0 deletions Dockerfile-12.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM postgres:12.1
ADD ./extension /usr/share/postgresql/12/extension/
30 changes: 28 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
registry ?= fetchq
name ?= fetchq
version ?= 2.1.0
pg_version ?= 12.0
pg_extension_folder ?= 12

## Testing with Postgres Versions
## It's a good idea to always test with all the versions
## it's manual and it sucks, we'll see about that in the future

# 9.6 10.11 11.6 12.1
pg_version ?= 9.6
# 9.6 10 11.6 12
pg_extension_folder ?= 9.6

reset:
rm -rf $(CURDIR)/data
Expand All @@ -16,6 +23,7 @@ build:
mkdir -p $(CURDIR)/extension
cp $(CURDIR)/src/fetchq.control $(CURDIR)/extension/fetchq.control
cat $(CURDIR)/src/info.sql \
$(CURDIR)/src/trigger-notify-as-json.sql \
$(CURDIR)/src/init.sql \
$(CURDIR)/src/destroy.sql \
$(CURDIR)/src/metric-set.sql \
Expand Down Expand Up @@ -124,7 +132,10 @@ build-test:
build-image: reset build
docker build --no-cache -t ${name}:9.6-${version} -f Dockerfile-9.6 .
docker build --no-cache -t ${name}:10.4-${version} -f Dockerfile-10.4 .
docker build --no-cache -t ${name}:10.11-${version} -f Dockerfile-10.11 .
docker build --no-cache -t ${name}:11.6-${version} -f Dockerfile-11.6 .
docker build --no-cache -t ${name}:12.0-${version} -f Dockerfile-12.0 .
docker build --no-cache -t ${name}:12.1-${version} -f Dockerfile-12.1 .

publish: build-image
# 9.6
Expand All @@ -137,11 +148,26 @@ publish: build-image
docker tag ${name}:10.4-${version} ${registry}/${name}:10.4-latest
docker push ${registry}/${name}:10.4-${version}
docker push ${registry}/${name}:10.4-latest
# 10.11
docker tag ${name}:10.11-${version} ${registry}/${name}:10.11-${version}
docker tag ${name}:10.11-${version} ${registry}/${name}:10.11-latest
docker push ${registry}/${name}:10.11-${version}
docker push ${registry}/${name}:10.11-latest
# 11.6
docker tag ${name}:11.6-${version} ${registry}/${name}:11.6-${version}
docker tag ${name}:11.6-${version} ${registry}/${name}:11.6-latest
docker push ${registry}/${name}:11.6-${version}
docker push ${registry}/${name}:11.6-latest
# 12.0
docker tag ${name}:12.0-${version} ${registry}/${name}:12.0-${version}
docker tag ${name}:12.0-${version} ${registry}/${name}:12.0-latest
docker push ${registry}/${name}:12.0-${version}
docker push ${registry}/${name}:12.0-latest
# 12.1
docker tag ${name}:12.1-${version} ${registry}/${name}:12.1-${version}
docker tag ${name}:12.1-${version} ${registry}/${name}:12.1-latest
docker push ${registry}/${name}:12.1-${version}
docker push ${registry}/${name}:12.1-latest
# latest
docker tag ${name}:12.0-${version} ${registry}/${name}:latest
docker push ${registry}/${name}:latest
Expand Down
9 changes: 9 additions & 0 deletions builds/v2.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# FetchQ v2.1.0

- Adds `fetchq_queue_create_indexes(qname)` signature that generate per-queue indexes
based on informations read from the `sys_queues` table.
- Adds `fetchq_trigger_notify_as_json()` that can be attached to any table to emit a full
JSON representation of the event (INSERT; UPDATE; DELETE).
- Emits full JSON events for `fetchq_sys_queues` so that the client can subscribe to it and
honor the queue status.

Loading

0 comments on commit 987d138

Please sign in to comment.