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

Commitb005843

Browse files
author
Nikita Glukhov
committed
Add contrib/bson
1 parentd4ebd63 commitb005843

File tree

5 files changed

+638
-0
lines changed

5 files changed

+638
-0
lines changed

‎contrib/bson/.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/bson/Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# contrib/bson/Makefile
2+
3+
MODULE_big = bson
4+
OBJS = bson.o$(WIN32RES)
5+
6+
EXTENSION = bson
7+
DATA = bson--1.0.sql
8+
PGFILEDESC = "BSON compression method for json/jsonb types"
9+
10+
REGRESS = bson
11+
12+
ifdefUSE_PGXS
13+
PG_CONFIG = pg_config
14+
PGXS :=$(shell$(PG_CONFIG) --pgxs)
15+
include$(PGXS)
16+
else
17+
subdir = contrib/bson
18+
top_builddir = ../..
19+
include$(top_builddir)/src/Makefile.global
20+
include$(top_srcdir)/contrib/contrib-global.mk
21+
endif

‎contrib/bson/bson--1.0.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* contrib/bson/bson--1.0.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4+
\echo Use"CREATE EXTENSION bson" to load this file. \quit
5+
6+
CREATEFUNCTIONbson_handler(internal)
7+
RETURNS compression_handler
8+
AS'MODULE_PATHNAME'
9+
LANGUAGE C;
10+
11+
CREATE COMPRESSION METHOD bson HANDLER bson_handler;
12+
COMMENTON COMPRESSION METHOD bson IS'BSON compression method';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp