Skip to content

Commit c4d134f

Browse files
Merge pull request #1256 from EnterpriseDB/release/2021-04-15
Former-commit-id: d62a546
2 parents 170d569 + 4c525aa commit c4d134f

File tree

61 files changed

+214
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+214
-194
lines changed

advocacy_docs/kubernetes/cloud_native_postgresql/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ navigation:
1515
- architecture
1616
- installation
1717
- quickstart
18-
- interactive
18+
- interactive_demo
1919
- cloud_setup
2020
- bootstrap
2121
- resource_management
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ katacodaPanel:
1414
scenario: minikube
1515
codelanguages: shell, yaml
1616
showInteractiveBadge: true
17+
legacyRedirects:
18+
- "/kubernetes/cloud_native_postgresql/interactive/installation_and_deployment"
1719
---
1820

1921
Want to see what it takes to get the Cloud Native PostgreSQL Operator up and running? This section will demonstrate the following:

advocacy_docs/kubernetes/cloud_native_postgresql/quickstart.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using Cloud Native PostgreSQL on a local Kubernetes cluster in
1212
!!! Tip "Live demonstration"
1313
Don't want to install anything locally just yet? Try a demonstration directly in your browser:
1414

15-
[Cloud Native PostgreSQL Operator Interactive Quickstart](interactive/installation_and_deployment/)
15+
[Cloud Native PostgreSQL Operator Interactive Quickstart](interactive_demo)
1616

1717
RedHat OpenShift Container Platform users can test the certified operator for
1818
Cloud Native PostgreSQL on the [Red Hat CodeReady Containers (CRC)](https://developers.redhat.com/products/codeready-containers/overview)

advocacy_docs/supported-open-source/pgbackrest/03-quick_start.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The [installation](02-installation) procedure must be followed before proceeding
1717

1818
The default pgBackRest configuration file location is `/etc/pgbackrest/pgbackrest.conf`. If it does not exist, then `/etc/pgbackrest.conf` is used next.
1919

20-
For more information about configuration parameters, see the [appendix section](97-appendix#configuration-reference).
20+
For more information about configuration parameters, see the [appendix section](98-appendix/#configuration-reference).
2121

2222
The following example configures a `demo` stanza to take a backup of a database cluster running on the local host.
2323

product_docs/docs/epas/13/epas_compat_reference/02_the_sql_language/03_functions_and_operators/05_pattern_matching_string_functions.mdx

+2-4
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ TEXT REGEXP_SUBSTR
200200
In the following simple example, `REGEXP_SUBSTR` searches a string that contains a phone number for the first set of three consecutive digits:
201201

202202
```text
203-
edb=# SELECT REGEXP_SUBSTR('800-555-1212', '[0-9][0-9][0-9]', 1, 1) FROM
204-
DUAL;
203+
edb=# SELECT REGEXP_SUBSTR('800-555-1212', '[0-9][0-9][0-9]', 1, 1) FROM DUAL;
205204
regexp_substr
206205
---------------
207206
800
@@ -211,8 +210,7 @@ DUAL;
211210
It locates the first occurrence of three digits and returns the string `(800)`; if we modify the command to check for the second occurrence of three consecutive digits:
212211

213212
```text
214-
edb=# SELECT REGEXP_SUBSTR('800-555-1212', '[0-9][0-9][0-9]', 1, 2) FROM
215-
DUAL;
213+
edb=# SELECT REGEXP_SUBSTR('800-555-1212', '[0-9][0-9][0-9]', 1, 2) FROM DUAL;
216214
regexp_substr
217215
---------------
218216
555

product_docs/docs/epas/13/epas_compat_reference/02_the_sql_language/03_functions_and_operators/06_pattern_matching_using_the_like_operator.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ string NOT LIKE pattern [ ESCAPE escape-character ]
1717

1818
Every `pattern` defines a set of strings. The `LIKE` expression returns `TRUE` if `string` is contained in the set of strings represented by `pattern`. As expected, the `NOT LIKE` expression returns `FALSE` if `LIKE` returns `TRUE`, and vice versa. An equivalent expression is `NOT (string LIKE pattern)`.
1919

20-
If `pattern` does not contain percent signs or underscore, then the pattern only represents the string itself; in that case `LIKE` acts like the equals operator. An underscore (\_) in `pattern` stands for (matches) any single character; a percent sign (`%`) matches any string of zero or more characters.
20+
If `pattern` does not contain percent signs or underscore, then the pattern only represents the string itself; in that case `LIKE` acts like the equals operator. An underscore (`_`) in `pattern` stands for (matches) any single character; a percent sign (`%`) matches any string of zero or more characters.
2121

2222
Some examples:
2323

product_docs/docs/epas/13/epas_compat_reference/02_the_sql_language/03_functions_and_operators/07_data_type_formatting_functions.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,8 @@ CREATE INDEX
211211
edb=# \dS ts_idx
212212
Index "public.ts_idx"
213213
Column | Type | Definition
214-
---------+-------------------+----------------------------------------------
215-
to_char | character varying | to_char(ts_col, 'YYYY-MM-DD
216-
HH24:MI:SS'::character varying)
214+
---------+-------------------+-----------------------------------------------------------
215+
to_char | character varying | to_char(ts_col, 'YYYY-MM-DD HH24:MI:SS'::character varying)
217216
btree, for table "public.ts_tbl"
218217
```
219218

product_docs/docs/epas/13/epas_compat_reference/02_the_sql_language/03_functions_and_operators/08_date_time_functions_and_operators.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In the date/time functions of the following table the use of the `DATE` and `TIM
2424
| ------------------------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------- |
2525
| `ADD_MONTHS (DATE, NUMBER)` | `DATE` | Add months to a date | `ADD_MONTHS ('28-FEB-97', ,3.8)` | `31-MAY-97 00:00:00` |
2626
| `CURRENT_DATE` | `DATE` | Current date | `CURRENT_DATE` | `04-JUL-07` |
27-
| `CURRENT_TIME STAMP` | `TIMESTAMP` | Returns the current date and time | `CURRENT_TIME STAMP` | `04-JUL-07 15:33:23.484` |
27+
| `CURRENT_TIMESTAMP` | `TIMESTAMP` | Returns the current date and time | `CURRENT_TIMESTAMP` | `04-JUL-07 15:33:23.484` |
2828
| `EXTRACT(field FROM TIMESTAMP)` | `DOUBLE PRECISION` | Get subfield | `EXTRACT(hour FROM TIMESTAMP '2001-02-16 20:38:40')` | `20` |
2929
| `LAST_DAY(DATE)` | `DATE` | Returns the last day of the month represented by the given date. If the given date contains a time portion, it is carried forward to the result unchanged | `LAST_DAY('14-APR-98')` | `30-APR-98 00:00:00` |
3030
| `LOCALTIMESTAMP [ (precision) ]` | `TIMESTAMP` | Current date and time (start of current transaction) | `LOCALTIMESTAMP` | `04-JUL-07 15:33:23.484` |
@@ -637,8 +637,7 @@ Following are examples of usage of the `TRUNC` function.
637637
The following example truncates down to the hundred years unit.
638638

639639
```text
640-
SELECT TO_CHAR(TRUNC(TO_DATE('1951','YYYY'),'CC'),'DD-MON-YYYY') "Century"
641-
FROM DUAL;
640+
SELECT TO_CHAR(TRUNC(TO_DATE('1951','YYYY'),'CC'),'DD-MON-YYYY') "Century" FROM DUAL;
642641
643642
Century
644643
-------------

product_docs/docs/epas/13/epas_compat_reference/02_the_sql_language/03_functions_and_operators/10_conditional_expressions.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CASE WHEN condition THEN result
2121
END
2222
```
2323

24-
`CASE` clauses can be used wherever an expression is valid. `condition` is an expression that returns a `BOOLEAN` result. If the result is `TRUE` then the value of the `CASE` expression is the `result` that follows the condition. If the result is `FALSE` any subsequent `WHEN` clauses are searched in the same manner. If `no WHEN condition` is `TRUE` then the value of the `CASE` expression is the `result` in the `ELSE` clause. If the `ELSE` clause is omitted and no condition matches, the result is `null`.
24+
`CASE` clauses can be used wherever an expression is valid. `condition` is an expression that returns a `BOOLEAN` result. If the result is `TRUE` then the value of the `CASE` expression is the `result` that follows the condition. If the result is `FALSE` any subsequent `WHEN` clauses are searched in the same manner. If `no WHEN condition` is `TRUE` then the value of the `CASE` expression is the `result` in the `ELSE` clause. If the `ELSE` clause is omitted and no condition matches, the result is `NULL`.
2525

2626
An example:
2727

product_docs/docs/epas/13/epas_compat_reference/02_the_sql_language/03_functions_and_operators/11_aggregate_functions.mdx

+24-24
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ The `LISTAGG` function returns a string value.
8888

8989
**Examples**
9090

91-
The following example concatenates the values in the `EMP` table and lists all the employees separated by a `delimiter` comma.
91+
The following example concatenates the values in the `emp` table and lists all the employees separated by a `delimiter` comma.
9292

93-
First, create a table named `EMP` and then insert records into the `EMP` table.
93+
First, create a table named `emp` and then insert records into the `emp` table.
9494

9595
```text
96-
edb=# CREATE TABLE EMP
96+
edb=# CREATE TABLE emp
9797
edb-# (EMPNO NUMBER(4) NOT NULL,
9898
edb(# ENAME VARCHAR2(10),
9999
edb(# JOB VARCHAR2(9),
@@ -106,39 +106,39 @@ CREATE TABLE
106106
```
107107

108108
```text
109-
edb=# INSERT INTO EMP VALUES
109+
edb=# INSERT INTO emp VALUES
110110
edb-# (7499, 'ALLEN', 'SALESMAN', 7698,
111111
edb(# TO_DATE('20-FEB-1981', 'DD-MON-YYYY'), 1600, 300, 30);
112112
INSERT 0 1
113-
edb=# INSERT INTO EMP VALUES
113+
edb=# INSERT INTO emp VALUES
114114
edb-# (7521, 'WARD', 'SALESMAN', 7698,
115115
edb(# TO_DATE('22-FEB-1981', 'DD-MON-YYYY'), 1250, 500, 30);
116116
INSERT 0 1
117-
edb=# INSERT INTO EMP VALUES
117+
edb=# INSERT INTO emp VALUES
118118
edb-# (7566, 'JONES', 'MANAGER', 7839,
119119
edb(# TO_DATE('2-APR-1981', 'DD-MON-YYYY'), 2975, NULL, 20);
120120
INSERT 0 1
121-
edb=# INSERT INTO EMP VALUES
121+
edb=# INSERT INTO emp VALUES
122122
edb-# (7654, 'MARTIN', 'SALESMAN', 7698,
123123
edb(# TO_DATE('28-SEP-1981', 'DD-MON-YYYY'), 1250, 1400, 30);
124124
INSERT 0 1
125-
edb=# INSERT INTO EMP VALUES
125+
edb=# INSERT INTO emp VALUES
126126
edb-# (7698, 'BLAKE', 'MANAGER', 7839,
127127
edb(# TO_DATE('1-MAY-1981', 'DD-MON-YYYY'), 2850, NULL, 30);
128128
INSERT 0 1
129129
130-
edb=# SELECT LISTAGG(ENAME, ',') WITHIN GROUP (ORDER BY ENAME) FROM EMP;
130+
edb=# SELECT LISTAGG(ENAME, ',') WITHIN GROUP (ORDER BY ENAME) FROM emp;
131131
listagg
132132
-------------------------------------
133133
ALLEN,BLAKE,JONES,MARTIN,WARD
134134
(1 row)
135135
```
136136

137-
The following example uses `PARTITION BY` clause with `LISTAGG` in `EMP` table and generates output based on a partition by `DEPTNO` that applies to each partition and not on the entire table.
137+
The following example uses `PARTITION BY` clause with `LISTAGG` in `emp` table and generates output based on a partition by `deptno` that applies to each partition and not on the entire table.
138138

139139
```text
140140
edb=# SELECT DISTINCT DEPTNO, LISTAGG(ENAME, ',') WITHIN GROUP (ORDER BY
141-
ENAME) OVER(PARTITION BY DEPTNO) FROM EMP;
141+
ENAME) OVER(PARTITION BY DEPTNO) FROM emp;
142142
deptno | listagg
143143
--------+-------------------------
144144
30 | ALLEN,BLAKE,MARTIN,WARD
@@ -150,7 +150,7 @@ The following example is identical to the previous example, except it includes t
150150

151151
```text
152152
edb=# SELECT DEPTNO, LISTAGG(ENAME, ',') WITHIN GROUP (ORDER BY ENAME) FROM
153-
EMP GROUP BY DEPTNO;
153+
emp GROUP BY DEPTNO;
154154
deptno | listagg
155155
--------+-------------------------
156156
20 | JONES
@@ -201,10 +201,10 @@ The return type is determined by the input data type of `expression`. The follow
201201

202202
**Examples**
203203

204-
In the following example, a query returns the median salary for each department in the `EMP` table:
204+
In the following example, a query returns the median salary for each department in the `emp` table:
205205

206206
```text
207-
edb=# SELECT * FROM EMP;
207+
edb=# SELECT * FROM emp;
208208
empno| ename | job | mgr | hiredate | sal | comm | deptno
209209
-----+-------+---------+------+-------------------+--------+--------+-------
210210
7369 | SMITH | CLERK | 7902 | 17-DEC-80 00:00:00| 800.00| | 20
@@ -214,18 +214,18 @@ edb=# SELECT * FROM EMP;
214214
7654 | MARTIN| SALESMAN| 7698 | 28-SEP-81 00:00:00| 1250.00| 1400.00| 30
215215
(5 rows)
216216
217-
edb=# SELECT MEDIAN (SAL) FROM EMP;
217+
edb=# SELECT MEDIAN (SAL) FROM emp;
218218
median
219219
--------
220220
1250
221221
(1 row)
222222
```
223223

224-
The following example uses `PARTITION BY` clause with `MEDIAN` in `EMP` table and returns the median salary based on a partition by `DEPTNO`:
224+
The following example uses `PARTITION BY` clause with `MEDIAN` in `emp` table and returns the median salary based on a partition by `deptno`:
225225

226226
```text
227227
edb=# SELECT EMPNO, ENAME, DEPTNO, MEDIAN (SAL) OVER (PARTITION BY DEPTNO)
228-
FROM EMP;
228+
FROM emp;
229229
empno | ename | deptno | median
230230
-------+--------+--------+--------
231231
7369 | SMITH | 20 | 1887.5
@@ -240,7 +240,7 @@ The `MEDIAN` function can be compared with `PERCENTILE_CONT`. In the following e
240240

241241
```text
242242
edb=# SELECT MEDIAN (SAL), PERCENTILE_CONT(0.5) WITHIN GROUP(ORDER BY SAL)
243-
FROM EMP;
243+
FROM emp;
244244
median | percentile_cont
245245
--------+-----------------
246246
1250 | 1250
@@ -281,10 +281,10 @@ The `STATS_MODE` function returns a value that appears frequently. However, if a
281281

282282
**Examples**
283283

284-
The following example returns the mode of salary in the `EMP` table:
284+
The following example returns the mode of salary in the `emp` table:
285285

286286
```text
287-
edb=# SELECT * FROM EMP;
287+
edb=# SELECT * FROM emp;
288288
empno| ename | job | mgr | hiredate | sal | comm | deptno
289289
------+-------+---------+------+-------------------+--------+--------+-------
290290
7369 | SMITH | CLERK | 7902 | 17-DEC-80 00:00:00| 800.00| | 20
@@ -294,17 +294,17 @@ edb=# SELECT * FROM EMP;
294294
7654 | MARTIN| SALESMAN| 7698 | 28-SEP-81 00:00:00| 1250.00| 1400.00| 30
295295
(5 rows)
296296
297-
edb=# SELECT STATS_MODE(SAL) FROM EMP;
297+
edb=# SELECT STATS_MODE(SAL) FROM emp;
298298
stats_mode
299299
------------
300300
1250.00
301301
(1 row)
302302
```
303303

304-
The following example uses `GROUP BY` and `ORDER BY` clause with `STATS_MODE` in `EMP` table and returns the salary based on a partition by `DEPTNO`:
304+
The following example uses `GROUP BY` and `ORDER BY` clause with `STATS_MODE` in `emp` table and returns the salary based on a partition by `deptno`:
305305

306306
```text
307-
edb=# SELECT STATS_MODE(SAL) FROM EMP GROUP BY DEPTNO ORDER BY DEPTNO;
307+
edb=# SELECT STATS_MODE(SAL) FROM emp GROUP BY DEPTNO ORDER BY DEPTNO;
308308
stats_mode
309309
------------
310310
800.00
@@ -315,7 +315,7 @@ edb=# SELECT STATS_MODE(SAL) FROM EMP GROUP BY DEPTNO ORDER BY DEPTNO;
315315
The following example uses the `WITHIN GROUP` clause with the `STATS_MODE` function to perform aggregation on the ordered data set.
316316

317317
```text
318-
SELECT STATS_MODE() WITHIN GROUP(ORDER BY SAL) FROM EMP;
318+
SELECT STATS_MODE() WITHIN GROUP(ORDER BY SAL) FROM emp;
319319
stats_mode
320320
------------
321321
1250.00

product_docs/docs/epas/13/epas_compat_reference/03_system_catalog_tables.mdx

+8-8
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ The `edb_profile` table stores information about the available profiles. `edb_pr
8686

8787
The `edb_variable` table contains one row for each package level variable (each variable declared within a package).
8888

89-
| Column | Type | Modifiers | Description |
90-
| ------------ | ---------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
91-
| `varname` | `"name"` | `not null` | The name of the variable. |
92-
| `varpackage` | `oid` | `not null` | The `OID` of the `pg_namespace` row that stores the package. |
93-
| `vartype` | `oid` | `not null` | The `OID` of the `pg_type` row that defines the type of the variable. |
94-
| `varaccess` | `"char"` | `not null` | + if the variable is visible outside of the package. - if the variable is only visible within the package. Note: Public variables are declared within the package header; private variables are declared within the package body. |
95-
| `varsrc` | `text` | `not null` | Contains the source of the variable declaration, including any default value expressions for the variable. |
96-
| `varseq` | `smallint` | `not null` | The order in which the variable was declared in the package. |
89+
| Column | Type | Modifiers | Description |
90+
| ------------ | ---------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
91+
| `varname` | `"name"` | `not null` | The name of the variable. |
92+
| `varpackage` | `oid` | `not null` | The `OID` of the `pg_namespace` row that stores the package. |
93+
| `vartype` | `oid` | `not null` | The `OID` of the `pg_type` row that defines the type of the variable. |
94+
| `varaccess` | `"char"` | `not null` | `+` if the variable is visible outside of the package. `-` if the variable is only visible within the package. Note: Public variables are declared within the package header; private variables are declared within the package body. |
95+
| `varsrc` | `text` | | Contains the source of the variable declaration, including any default value expressions for the variable. |
96+
| `varseq` | `smallint` | `not null` | The order in which the variable was declared in the package. |
9797

9898
## pg_synonym
9999

product_docs/docs/epas/13/epas_compat_table_partitioning/04_partitioning_commands_compatible_with_oracle_databases/10_alter_table_set_partitioning_automatic/01_example_setting_an_automatic_list_partition.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ALTER TABLE sales SET AUTOMATIC;
3535
Query the `ALL_TAB_PARTITIONS` view to see that an existing partition is successfully created.
3636

3737
```text
38-
edb=# select table_name, partition_name, high_value FROM ALL_TAB_PARTITIONS;
38+
edb=# SELECT table_name, partition_name, high_value FROM ALL_TAB_PARTITIONS;
3939
table_name | partition_name | high_value
4040
------------+----------------+------------
4141
SALES | P_KAN | 'KANSAS'
@@ -53,7 +53,7 @@ INSERT 0 1
5353
Then, query the `ALL_TAB_PARTITIONS` view again after the insert. The automatic list partition is successfully created and data is inserted. A system-generated name of the partition is created that varies for each session.
5454

5555
```text
56-
edb=# select table_name, partition_name, high_value FROM ALL_TAB_PARTITIONS;
56+
edb=# SELECT table_name, partition_name, high_value FROM ALL_TAB_PARTITIONS;
5757
table_name | partition_name | high_value
5858
------------+----------------+------------
5959
SALES | P_KAN | 'KANSAS'

0 commit comments

Comments
 (0)