Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fa15ccb
Switch to pgxn-tools based testing
jnasbyupgrade Aug 25, 2025
99083b8
Remove .travis.yml
jnasbyupgrade Aug 25, 2025
aa53b91
Remove errant vim swapfile
jnasbyupgrade Aug 25, 2025
68e8afc
Update test workflow
jnasbyupgrade Aug 25, 2025
9859566
Add missing PGUSER argument
jnasbyupgrade Aug 25, 2025
9a1e50b
Fix dump test
jnasbyupgrade Aug 25, 2025
a217824
Pull pgxntool from master
jnasbyupgrade Aug 25, 2025
594d248
Squashed 'pgxntool/' changes from 890053c..e9c24de
jnasbyupgrade Aug 25, 2025
8dc5cfc
dump test is actually included in make test
jnasbyupgrade Aug 25, 2025
c032502
Stop using reg* pseudotypes in tables
jnasbyupgrade Aug 25, 2025
7236cf3
Add README; get rid of no longer needed code
jnasbyupgrade Aug 26, 2025
d89e0fb
minor test cleanup
jnasbyupgrade Aug 26, 2025
fae8f7c
Add functions to retrieve object info
jnasbyupgrade Aug 26, 2025
96be133
Disallow tracking objects in temp schemas
jnasbyupgrade Aug 26, 2025
bb40896
Add object__cleanup()
jnasbyupgrade Aug 27, 2025
f50bbc6
Fix tests
jnasbyupgrade Aug 27, 2025
f02670e
Remove references to count_nulls
jnasbyupgrade Aug 27, 2025
1d964c7
Remove references to count_nulls
jnasbyupgrade Aug 27, 2025
2421aa9
Merge branch 'new_features' of github.com:jnasbyupgrade/object_refere…
jnasbyupgrade Nov 11, 2025
2fa541d
Get more debug output on a test failure
jnasbyupgrade Nov 11, 2025
23d3bf9
Have test step continue on failure
jnasbyupgrade Nov 11, 2025
40625c2
Try /var/log for logfile
jnasbyupgrade Nov 11, 2025
80d2906
Squashed 'pgxntool/' changes from e9c24de..3b8cb2a
jnasbyupgrade Feb 4, 2026
219be1f
Pull pgxntool from git@github.com:decibel/pgxntool.git release
jnasbyupgrade Feb 4, 2026
99c9902
Merge pgxntool .gitignore; add versioned SQL
jnasbyupgrade Feb 4, 2026
87b1b7e
Mark partitioned table/index as unsupported
jnasbyupgrade Feb 6, 2026
1c6f409
Finish pgxntool update
jnasbyupgrade Feb 6, 2026
7f34cc5
Mark count_nulls as a dependency
jnasbyupgrade Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
pg: [17, 16, 15, 14, 13, 12, 11, 10]
name: 🐘 PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- name: Start PostgreSQL ${{ matrix.pg }}
run: pg-start ${{ matrix.pg }}
- name: Check out the repo
uses: actions/checkout@v4
- name: Test on PostgreSQL ${{ matrix.pg }}
run: make test PGUSER=postgres
continue-on-error: true
- name: Output failed results
run: |
if [ -e test/regression.out ]; then
ls -la /var/log
ls -la /var/log/postgresql/
cat /var/log/postgresql/postgresql-${{ matrix.pg }}-test.log
exit 1
fi
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ test/dump/*.log
# Editor files
.*.swp

# Claude Code local settings
.claude/*.local.json

# Explicitly exclude META.json!
!/META.json

# Generated make files
meta.mk
control.mk

# Compiler output
*.o
*.so
.deps/

# built targets
/sql/*--*
!/sql/*--*--*.sql
# Note: Version-specific files (sql/*--*.sql) are now tracked in git and should be committed

# Test artifacts
results/
Expand All @@ -28,3 +31,6 @@ regression.out
# Misc
tmp/
.DS_Store

# pg_tle generated files
/pg_tle/
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

19 changes: 10 additions & 9 deletions META.in.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"X_comment": "The pgxntool Makefile will strip out empty keys to produce a working META.json, so it's fine to leave them here.",
"X_comment": "NOTE: Don't get too cute with reformatting this file... some of the processing against it doesn't use a full JSON parser",
"X_comment": "",
"X_comment": "I've tried to put things in a logical order. Comments welcome at https://github.com/decibel/pgxntool/issues!",
"X_comment": "I've tried to put things in a logical order. Comments welcome at https://github.com/Postgres-Extensions/pgxntool/issues!",

"X_comment": "REQUIRED. Name of distribution.",
"X_comment": "Note! Distribution names currently can't contain spaces.",
"name": "object_reference",

"X_comment": "REQUIRED. Version of the distribution. http://pgxn.org/spec/#version",
"version": "0.1.0",
"version": "0.2.0",

"X_comment": "REQUIRED. Short description of distribution.",
"abstract": "Provides immutable references to Postgres objects.",
Expand All @@ -41,7 +41,7 @@
"file": "sql/object_reference.sql",

"X_comment": "REQUIRED. Version the extension is at.",
"version": "0.1.0",
"version": "0.2.0",

"X_comment": "Optional: \"abstract\": Description of the extension.",
"abstract": "Provides immutable references to Postgres objects.",
Expand All @@ -58,13 +58,13 @@

"X_comment": "Optional. \"resources\": Web resources available for this distribution. http://pgxn.org/spec/#resources",
"resources": {
"homepage": "http://github.com/decibel/object_reference/",
"homepage": "http://github.com/Postgres-Extensions/object_reference/",
"bugtracker": {
"web": "http://github.com/decibel/object_reference/issues"
"web": "http://github.com/Postgres-Extensions/object_reference/issues"
},
"repository": {
"url": "git://github.com/decibel/object_reference.git",
"web": "http://github.com/decibel/object_reference/",
"url": "git://github.com/Postgres-Extensions/object_reference.git",
"web": "http://github.com/Postgres-Extensions/object_reference/",
"type": "git"
}
},
Expand All @@ -76,11 +76,12 @@

"build": {
"requires": {
"PostgreSQL": "9.5.0"
"PostgreSQL": "13.0"
}
},
"runtime": {
"requires": {
"cat_tools": 0,
"plpgsql": 0
}
},
Expand All @@ -95,7 +96,7 @@
"no_index": "",

"X_comment": "Unusual. Package/tool used to generate this file.",
"generated_by": "pgxntool https://github.com/decibel/pgxntool",
"generated_by": "pgxntool https://github.com/Postgres-Extensions/pgxntool",

"X_comment": "REQUIRED. Version info for this file. http://pgxn.org/spec/#meta-spec",
"meta-spec": {
Expand Down
19 changes: 10 additions & 9 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"X_comment": "Keys marked REQUIRED or Optional are what you'd expect. Keys marked Unusual are keys you don't normally need to use.",
"X_comment": "The pgxntool Makefile will strip out empty keys to produce a working META.json, so it's fine to leave them here.",
"X_comment": "NOTE: Don't get too cute with reformatting this file... some of the processing against it doesn't use a full JSON parser",
"X_comment": "I've tried to put things in a logical order. Comments welcome at https://github.com/decibel/pgxntool/issues!",
"X_comment": "I've tried to put things in a logical order. Comments welcome at https://github.com/Postgres-Extensions/pgxntool/issues!",

"X_comment": "REQUIRED. Name of distribution.",
"X_comment": "Note! Distribution names currently can't contain spaces.",
"name": "object_reference",

"X_comment": "REQUIRED. Version of the distribution. http://pgxn.org/spec/#version",
"version": "0.1.0",
"version": "0.2.0",

"X_comment": "REQUIRED. Short description of distribution.",
"abstract": "Provides immutable references to Postgres objects.",
Expand All @@ -40,7 +40,7 @@
"file": "sql/object_reference.sql",

"X_comment": "REQUIRED. Version the extension is at.",
"version": "0.1.0",
"version": "0.2.0",

"X_comment": "Optional: \"abstract\": Description of the extension.",
"abstract": "Provides immutable references to Postgres objects.",
Expand All @@ -56,13 +56,13 @@

"X_comment": "Optional. \"resources\": Web resources available for this distribution. http://pgxn.org/spec/#resources",
"resources": {
"homepage": "http://github.com/decibel/object_reference/",
"homepage": "http://github.com/Postgres-Extensions/object_reference/",
"bugtracker": {
"web": "http://github.com/decibel/object_reference/issues"
"web": "http://github.com/Postgres-Extensions/object_reference/issues"
},
"repository": {
"url": "git://github.com/decibel/object_reference.git",
"web": "http://github.com/decibel/object_reference/",
"url": "git://github.com/Postgres-Extensions/object_reference.git",
"web": "http://github.com/Postgres-Extensions/object_reference/",
"type": "git"
}
},
Expand All @@ -74,11 +74,12 @@

"build": {
"requires": {
"PostgreSQL": "9.5.0"
"PostgreSQL": "13.0"
}
},
"runtime": {
"requires": {
"cat_tools": 0,
"plpgsql": 0
}
},
Expand All @@ -92,7 +93,7 @@
"X_comment": "Unusual. \"no_index\": Files/directories that should not be indexed. http://pgxn.org/spec/#no_index",

"X_comment": "Unusual. Package/tool used to generate this file.",
"generated_by": "pgxntool https://github.com/decibel/pgxntool",
"generated_by": "pgxntool https://github.com/Postgres-Extensions/pgxntool",

"X_comment": "REQUIRED. Version info for this file. http://pgxn.org/spec/#meta-spec",
"meta-spec": {
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include pgxntool/base.mk
testdeps: $(wildcard test/*.sql test/helpers/*.sql) # Be careful not to include directories in this
testdeps: test_factory

install: cat_tools count_nulls
install: cat_tools

test: dump_test
extra_clean += $(wildcard test/dump/*.log)
Expand All @@ -15,10 +15,6 @@ cat_tools: $(DESTDIR)$(datadir)/extension/cat_tools.control
$(DESTDIR)$(datadir)/extension/cat_tools.control:
pgxn install --unstable cat_tools

.PHONY: count_nulls
count_nulls: $(DESTDIR)$(datadir)/extension/count_nulls.control
$(DESTDIR)$(datadir)/extension/count_nulls.control:
pgxn install --unstable count_nulls

.PHONY: test_factory
test_factory: $(DESTDIR)$(datadir)/extension/test_factory.control
Expand Down
Loading