Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ecc1223

Browse files
committed
License.
1 parent bf17144 commit ecc1223

16 files changed

+86
-2
lines changed

LICENSE

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

init.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* init.sql
44
* Commands infrastructure, interface funcs, common utility funcs.
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* ------------------------------------------------------------------------
79
*/
810

membership.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* init.sql
44
* Handling nodes addition and removal.
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* ------------------------------------------------------------------------
79
*/
810

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
pg_shardman: PostgreSQL sharding built on pg_pathman, postgres_fdw and logical
2+
replication.
3+
14
First, some terminology:
25
'shardlord' or 'lord' is postgres instance and background process (bgw) spinning
36
on it which manages sharding.
@@ -20,7 +23,7 @@ Both shardlord and workers require extension built and installed. We depend
2023
on pg_pathman extension so it must be installed too.
2124
PostgreSQL location for building is derived from pg_config, you can also specify
2225
path to it in PG_CONFIG var. PostgreSQL 10 (master branch as of writing this)
23-
is required. The whole process is of building and copying files to PG server is just:
26+
is required. The whole process of building and copying files to PG server is just:
2427

2528
git clone
2629
cd pg_shardman

shard.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* shard.sql
44
* Tables & partitions metadata definitions, triggers and utility funcs.
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* ------------------------------------------------------------------------
79
*/
810

src/copypart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* copypart.c
44
* Implementation of sharding commands involving partition copy.
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* Partitions moving/copying is implemented via LR: we start initial tablesync,
79
* wait it for finish, then make src read-only and wait until dst will get
810
* current src's lsn.

src/include/copypart.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/* ------------------------------------------------------------------------
2+
*
3+
* hooks.h
4+
* Sharding commands involving partition copy prototypes.
5+
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
8+
* ------------------------------------------------------------------------
9+
*/
110
#ifndef COPYPART_H
211
#define COPYPART_H
312

src/include/pg_shardman.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/* -------------------------------------------------------------------------
2+
*
3+
* Primary pg_shardman include file.
4+
*
5+
* Copyright (c) 2017, Postgres Professional
6+
*
7+
* -------------------------------------------------------------------------
8+
*/
19
#ifndef PG_SHARDMAN_H
210
#define PG_SHARDMAN_H
311

src/include/shard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/* -------------------------------------------------------------------------
2+
*
3+
* Sharding commands declarations.
4+
*
5+
* Copyright (c) 2017, Postgres Professional
6+
*
7+
* -------------------------------------------------------------------------
8+
*/
19
#ifndef SHARD_H
210
#define SHARD_H
311

src/include/shardman_hooks.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* -------------------------------------------------------------------------
2+
* Copyright (c) 2017, Postgres Professional
3+
* -------------------------------------------------------------------------
4+
*/
15
#ifndef SHARDMAN_HOOKS_H
26
#define SHARDMAN_HOOKS_H
37

src/include/timeutils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* -------------------------------------------------------------------------
2+
* Copyright (c) 2017, Postgres Professional
3+
* -------------------------------------------------------------------------
4+
*/
15
#ifndef TIMEUTILS_H
26
#define TIMEUTILS_H
37

src/pg_shardman.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* pg_shardman.c
44
* This module contains background worker accepting sharding tasks for
55
* execution, membership commands implementation and common routines for
6-
* quering the metadata.
6+
* querying the metadata.
7+
*
8+
* Copyright (c) 2017, Postgres Professional
79
*
810
* -------------------------------------------------------------------------
911
*/

src/shard.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* shard.c
44
* Implementation of sharding commands.
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* -------------------------------------------------------------------------
79
*/
810
#include "postgres.h"

src/shardman_hooks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* hooks.c
44
* shardman hooks
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* ------------------------------------------------------------------------
79
*/
810

src/timeutils.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/* ------------------------------------------------------------------------
2+
*
3+
* timeutils.c
4+
* time utilits
5+
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
8+
* ------------------------------------------------------------------------
9+
*/
10+
111
#include "timeutils.h"
212

313
#define MILLION 1000000L

src/udf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* udf.c
44
* SQL functions.
55
*
6+
* Copyright (c) 2017, Postgres Professional
7+
*
68
* -------------------------------------------------------------------------
79
*/
810
#include "postgres.h"

0 commit comments

Comments
 (0)