Skip to content

Commit 477b6d6

Browse files
committed
clean variable & parameter names
1 parent 2ad0cf0 commit 477b6d6

File tree

2 files changed

+152
-152
lines changed

2 files changed

+152
-152
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ Performs HASH partitioning for `relation` by integer key `attribute`. The `parti
9191
create_range_partitions(relation REGCLASS,
9292
attribute TEXT,
9393
start_value ANYELEMENT,
94-
interval ANYELEMENT,
95-
count INTEGER DEFAULT NULL
94+
p_interval ANYELEMENT,
95+
p_count INTEGER DEFAULT NULL
9696
partition_data BOOLEAN DEFAULT TRUE)
9797

9898
create_range_partitions(relation REGCLASS,
9999
attribute TEXT,
100100
start_value ANYELEMENT,
101-
interval INTERVAL,
102-
count INTEGER DEFAULT NULL,
101+
p_interval INTERVAL,
102+
p_count INTEGER DEFAULT NULL,
103103
partition_data BOOLEAN DEFAULT TRUE)
104104
```
105105
Performs RANGE partitioning for `relation` by partitioning key `attribute`. `start_value` argument specifies initial value, `interval` sets the range of values in a single partition, `count` is the number of premade partitions (if not set then pathman tries to determine it based on attribute values). Partition creation callback is invoked for each partition if set beforehand.
@@ -109,14 +109,14 @@ create_partitions_from_range(relation REGCLASS,
109109
attribute TEXT,
110110
start_value ANYELEMENT,
111111
end_value ANYELEMENT,
112-
interval ANYELEMENT,
112+
p_interval ANYELEMENT,
113113
partition_data BOOLEAN DEFAULT TRUE)
114114

115115
create_partitions_from_range(relation REGCLASS,
116116
attribute TEXT,
117117
start_value ANYELEMENT,
118118
end_value ANYELEMENT,
119-
interval INTERVAL,
119+
p_interval INTERVAL,
120120
partition_data BOOLEAN DEFAULT TRUE)
121121
```
122122
Performs RANGE-partitioning from specified range for `relation` by partitioning key `attribute`. Partition creation callback is invoked for each partition if set beforehand.
@@ -146,25 +146,25 @@ Same as above, but for a RANGE-partitioned table.
146146
### Post-creation partition management
147147
```plpgsql
148148
split_range_partition(partition REGCLASS,
149-
value ANYELEMENT,
149+
split_value ANYELEMENT,
150150
partition_name TEXT DEFAULT NULL)
151151
```
152-
Split RANGE `partition` in two by `value`. Partition creation callback is invoked for a new partition if available.
152+
Split RANGE `partition` in two by `split_value`. Partition creation callback is invoked for a new partition if available.
153153

154154
```plpgsql
155155
merge_range_partitions(partition1 REGCLASS, partition2 REGCLASS)
156156
```
157157
Merge two adjacent RANGE partitions. First, data from `partition2` is copied to `partition1`, then `partition2` is removed.
158158

159159
```plpgsql
160-
append_range_partition(p_relation REGCLASS,
160+
append_range_partition(parent REGCLASS,
161161
partition_name TEXT DEFAULT NULL,
162162
tablespace TEXT DEFAULT NULL)
163163
```
164164
Append new RANGE partition with `pathman_config.range_interval` as interval.
165165

166166
```plpgsql
167-
prepend_range_partition(p_relation REGCLASS,
167+
prepend_range_partition(parent REGCLASS,
168168
partition_name TEXT DEFAULT NULL,
169169
tablespace TEXT DEFAULT NULL)
170170
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy