File tree Expand file tree Collapse file tree 9 files changed +87
-0
lines changed Expand file tree Collapse file tree 9 files changed +87
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * init.c
4
+ * This module allocates large DSM segment to store arrays,
5
+ * initializes it with block structure and provides functions to
6
+ * allocate and free arrays
7
+ *
8
+ * Copyright (c) 2015-2016, Postgres Professional
9
+ *
10
+ * ------------------------------------------------------------------------
11
+ */
1
12
#include "pathman.h"
2
13
#include "storage/shmem.h"
3
14
#include "storage/dsm.h"
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * hash.sql
4
+ * HASH partitioning functions
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
10
+
1
11
/*
2
12
* Creates hash partitions for specified relation
3
13
*/
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * init.c
4
+ * Initialization functions
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
1
10
#include "pathman.h"
2
11
#include "miscadmin.h"
3
12
#include "executor/spi.h"
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * init.sql
4
+ * Creates config table and provides common utility functions
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
10
+
1
11
/*
2
12
* Pathman config
3
13
* relname - schema qualified relation name
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * pathman.h
4
+ * structures and prototypes for pathman functions
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
1
10
#ifndef PATHMAN_H
2
11
#define PATHMAN_H
3
12
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * pg_pathman.c
4
+ * This module sets planner hooks, handles SELECT queries and produces
5
+ * paths for partitioned tables
6
+ *
7
+ * Copyright (c) 2015-2016, Postgres Professional
8
+ *
9
+ * ------------------------------------------------------------------------
10
+ */
1
11
#include "pathman.h"
2
12
#include "postgres.h"
3
13
#include "fmgr.h"
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * pl_funcs.c
4
+ * Utility C functions for stored procedures
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
1
10
#include "pathman.h"
2
11
#include "utils/lsyscache.h"
3
12
#include "utils/typcache.h"
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * range.sql
4
+ * RANGE partitioning functions
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
10
+
1
11
/*
2
12
* Creates RANGE partitions for specified relation based on datetime attribute
3
13
*/
Original file line number Diff line number Diff line change
1
+ /* ------------------------------------------------------------------------
2
+ *
3
+ * rangeset.c
4
+ * Index range functions
5
+ *
6
+ * Copyright (c) 2015-2016, Postgres Professional
7
+ *
8
+ * ------------------------------------------------------------------------
9
+ */
1
10
#include "pathman.h"
2
11
3
12
/* Check if two ranges are intersecting */
You can’t perform that action at this time.
0 commit comments