From d00bd24c8b3860ec48e894843f9be6c5e355b048 Mon Sep 17 00:00:00 2001 From: Jim Mlodgenski Date: Thu, 13 Feb 2025 13:10:40 -0500 Subject: [PATCH] Add a META.json file to support pgxn distribution --- META.json | 42 ++++++++++++++++++++++++++++++++++++++++++ Makefile | 5 ++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 META.json diff --git a/META.json b/META.json new file mode 100644 index 0000000..bacd8a1 --- /dev/null +++ b/META.json @@ -0,0 +1,42 @@ +{ + "name": "pgcollection", + "abstract": "A collection data type", + "description": "pgcollection is a memory optimized data type for PostgreSQL used as a high performance data structure inside of plpglsql functions to create associative arrays", + "version": "0.9.0", + "maintainer": "Jim Mlodgenski ", + "license": "apache_2_0", + "prereqs": { + "runtime": { + "requires": { + "PostgreSQL": "14.0.0" + } + } + }, + "provides": { + "pgcollection": { + "file": "sql/collection--0.9.sql", + "docfile": "pgcollection.md", + "version": "0.9.0" + } + }, + "resources": { + "bugtracker": { + "web": "https://github.com/aws/pgcollection/issues" + }, + "repository": { + "url": "https://github.com/aws/pgcollection.git" , + "web": "https://github.com/aws/pgcollection", + "type": "git" + } + }, + "meta-spec": { + "version": "1.0.0", + "url": "https://pgxn.org/meta/spec.txt" + }, + "tags": [ + "data type", + "compatibility", + "associative array", + "key value" + ] +} \ No newline at end of file diff --git a/Makefile b/Makefile index 8c91364..84182d5 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ OBJS = src/collection.o \ REGRESS = collection subscript iteration srf REGRESS_OPTS = --inputdir=test --outputdir=test --load-extension=collection -EXTRA_CLEAN = test/results/ test/regression.diffs test/regression.out +EXTRA_CLEAN = test/results/ test/regression.diffs test/regression.out $(EXTENSION)-$(EXTVERSION).zip PG_CPPFLAGS += -I./include/ @@ -26,3 +26,6 @@ PG_CPPFLAGS += -DHASH_BLOOM=16 PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) + +dist: + git archive --format zip --prefix=$(EXTENSION)-$(EXTVERSION)/ -o $(EXTENSION)-$(EXTVERSION).zip HEAD \ No newline at end of file