Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ef1eef

Browse files
committed
Allow archiving via loadable modules.
Running a shell command for each file to be archived has a lot ofoverhead and may not offer as much error checking as you want, or theexact semantics that you want. So, offer the option to call a loadablemodule for each file to be archived, rather than running a shell command.Also, add a 'basic_archive' contrib module as an example implementationthat archives to a local directory.Nathan Bossart, with a little bit of kibitzing by me.Discussion:http://postgr.es/m/20220202224433.GA1036711@nathanxps13
1 parent7c1aead commit5ef1eef

26 files changed

+938
-64
lines changed

‎contrib/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SUBDIRS = \
99
amcheck\
1010
auth_delay\
1111
auto_explain\
12+
basic_archive\
1213
bloom\
1314
btree_gin\
1415
btree_gist\

‎contrib/basic_archive/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated subdirectories
2+
/log/
3+
/results/
4+
/tmp_check/

‎contrib/basic_archive/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# contrib/basic_archive/Makefile
2+
3+
MODULES = basic_archive
4+
PGFILEDESC = "basic_archive - basic archive module"
5+
6+
REGRESS = basic_archive
7+
REGRESS_OPTS = --temp-config$(top_srcdir)/contrib/basic_archive/basic_archive.conf
8+
9+
NO_INSTALLCHECK = 1
10+
11+
ifdefUSE_PGXS
12+
PG_CONFIG = pg_config
13+
PGXS :=$(shell$(PG_CONFIG) --pgxs)
14+
include$(PGXS)
15+
else
16+
subdir = contrib/basic_archive
17+
top_builddir = ../..
18+
include$(top_builddir)/src/Makefile.global
19+
include$(top_srcdir)/contrib/contrib-global.mk
20+
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp