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

Commit17df98e

Browse files
committed
Add 'contrib/pg_execplan/' from commit 'a61ae072f8d10d0836ba491a549cb198100c8c49'
git-subtree-dir: contrib/pg_execplangit-subtree-mainline:e498347git-subtree-split:a61ae07
2 parentse498347 +a61ae07 commit17df98e

File tree

12 files changed

+4143
-0
lines changed

12 files changed

+4143
-0
lines changed

‎contrib/pg_execplan/LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ExecPlan is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses.
2+
3+
Copyright (c) 2018-2019, Postgres Professional
4+
Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
5+
Portions Copyright (c) 1994, The Regents of the University of California
6+
7+
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
8+
9+
IN NO EVENT SHALL POSTGRES PROFESSIONAL BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF POSTGRES PROFESSIONAL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10+
11+
POSTGRES PROFESSIONAL SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND POSTGRES PROFESSIONAL HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

‎contrib/pg_execplan/Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# contrib/repeater/Makefile
2+
3+
MODULE_big = repeater
4+
EXTENSION = repeater
5+
EXTVERSION = 0.1
6+
PGFILEDESC = "Repeater"
7+
MODULES = repeater
8+
OBJS = repeater.o$(WIN32RES)
9+
10+
fdw_srcdir =$(top_srcdir)/contrib/postgres_fdw/
11+
12+
PG_CPPFLAGS = -I$(libpq_srcdir) -I$(fdw_srcdir) -L$(fdw_srcdir)
13+
SHLIB_LINK_INTERNAL =$(libpq)
14+
15+
DATA_built =$(EXTENSION)--$(EXTVERSION).sql
16+
17+
ifdefUSE_PGXS
18+
PG_CONFIG = pg_config
19+
PGXS :=$(shell$(PG_CONFIG) --pgxs)
20+
include$(PGXS)
21+
else
22+
EXTRA_INSTALL = contrib/postgres_fdw
23+
SHLIB_PREREQS = submake-libpq
24+
subdir = contrib/repeater
25+
top_builddir = ../..
26+
include$(top_builddir)/src/Makefile.global
27+
#include $(top_builddir)/contrib/postgres_fdw/Makefile
28+
include$(top_srcdir)/contrib/contrib-global.mk
29+
endif
30+
31+
$(EXTENSION)--$(EXTVERSION).sql: init.sql
32+
cat$^>$@

‎contrib/pg_execplan/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#execplan
2+
PostgreSQL patch & extension for raw query plan execution
3+
4+
This project dedicated to query execution problem in DBMS for computing systems with cluster architecture.
5+
6+
The DBMS may need to execute an identical query plan at each computing node.
7+
Today PostgreSQL can process only SQL statements. But it is not guaranteed, that the planner at each node will construct same query plan, because different statistics, relation sizes e.t.c.
8+
9+
This solution based on postgres-xl approach: plan tree is serialized by the nodeToString() routine.
10+
During serialization we transform all database object identifiers (oid) in each node field to portable representation.
11+
Further, the serialized plan transfer by new libpq routine called`PQsendPlan`.
12+
In this project we use postgres_fdw connections for management of sessions and remote transactions.
13+
Some`repeater` extension used for the demonstration of plan transfer machinery.
14+
The`pg12_devel.patch` patch contains all core changes.
15+
The`scripts` directory contains some simplistic demo tests.

‎contrib/pg_execplan/init.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\echo Use"CREATE EXTENSION repeater" to load this file. \quit

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp