Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
[submodule "pglite/pg_uuidv7"]
path = pglite/pg_uuidv7
url = https://github.com/fboulnois/pg_uuidv7/
[submodule "pglite/age"]
path = pglite/age
url = https://github.com/apache/age.git
branch = master
[submodule "pglite/pg_hashids"]
path = pglite/pg_hashids
url = https://github.com/iCyberon/pg_hashids
1 change: 1 addition & 0 deletions pglite-wasm/excluded.pglite.imports
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ invoke_ij
invoke_ijj
invoke_j
invoke_ji
invoke_jii
invoke_jiiiii
invoke_v
invoke_vi
Expand Down
7 changes: 6 additions & 1 deletion pglite-wasm/included.pglite.imports
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ strerror_r
strftime
strlcpy
strlen
post_parse_analyze_hook
set_rel_pathlist_hook
ProcessUtility_hook
RegisterExtensibleNodeMethods
object_access_hook
strncat
strncmp
strstr
Expand All @@ -93,4 +98,4 @@ text_to_cstring
text_to_cstring_buffer
time
tolower
TupleDescGetAttInMetadata
TupleDescGetAttInMetadata
15 changes: 14 additions & 1 deletion pglite/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Packages other extensions into individual tar.gz archives

top_builddir = ..
include $(top_builddir)/src/Makefile.global
Expand All @@ -8,6 +7,7 @@ SUBDIRS = \
vector \
pgtap \
pg_uuidv7 \
age \
pg_hashids

prefix ?= /install/pglite
Expand All @@ -30,6 +30,19 @@ dist: $(addsuffix .tar.gz,$(EXTENSIONS))
cd $(EXTENSIONS_BUILD_ROOT)/$*/$(prefix) && \
files=$$(find . -type f -o -type l | sed 's|^\./||') && \
tar -czf $(ARCHIVE_DIR)/$*.tar.gz $$files

# AGE requires SIZEOF_DATUM=4 for 32-bit WASM compatibility (strips PASSEDBYVALUE from graphid)
age.tar.gz:
@echo "=== Staging age (with 32-bit support) ==="
rm -rf $(EXTENSIONS_BUILD_ROOT)/age
bash -c 'mkdir -p $(EXTENSIONS_BUILD_ROOT)/age/$(prefix)/{bin,lib,share/extension,share/doc,share/postgresql/extension,share/postgresql/tsearch_data,include}'
rm -f age/age--*.sql
$(MAKE) -C age install DESTDIR=$(EXTENSIONS_BUILD_ROOT)/age SIZEOF_DATUM=4
@echo "=== Packaging age ==="
mkdir -p $(ARCHIVE_DIR)
cd $(EXTENSIONS_BUILD_ROOT)/age/$(prefix) && \
files=$$(find . -type f -o -type l | sed 's|^\./||') && \
tar -czf $(ARCHIVE_DIR)/age.tar.gz $$files
# tar -C $(EXTENSIONS_BUILD_ROOT)/$*/$(prefix) -czf $(ARCHIVE_DIR)/$*.tar.gz .

.PHONY: dist
Expand Down
1 change: 1 addition & 0 deletions pglite/age
Submodule age added at b29ca5