Skip to content

Commit d64c0ab

Browse files
committed
Edits
1 parent 1199cfe commit d64c0ab

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

ydb/docs/en/core/postgresql/docker-connect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Connecting via PostgreSQL Protocol
22

3+
{% include [./_includes/alert.md](./_includes/alert_preview.md) %}
4+
35
## Running {{ ydb-short-name }} with PostgreSQL compatibility enabled
46

57
Currently, the PostgreSQL compatibility feature is available for testing in the Docker image: `ghcr.io/ydb-platform/local-ydb:nightly`.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PostgreSQL functions
22

3+
{% include [./_includes/alert.md](./_includes/alert_preview.md) %}
4+
35
This section contains PostgreSQL functions supported in the {{ ydb-short-name }} mode of compatibility with PostgreSQL. The original structure of the PostgreSQL documentation and examples of function application are preserved in the section. This article is automatically supplemented and tested.
46

57
{% include [functions](./_includes/functions.md) %}

ydb/docs/en/core/postgresql/import.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ As an example, data generated by [pgbench](https://www.postgresql.org/docs/curre
6363
1. Start Docker containers with PostgreSQL and {{ ydb-short-name }}:
6464

6565
```bash
66-
docker run --name my_postgres_container \
66+
docker run --name postgres_container \
6767
-e POSTGRES_USER=pgroot -e POSTGRES_PASSWORD=1234 \
6868
-e POSTGRES_DB=local \
6969
-p 5433:5433 -d postgres:14 -c 'port=5433'
@@ -77,13 +77,13 @@ As an example, data generated by [pgbench](https://www.postgresql.org/docs/curre
7777
2. Generate data through [pgbench](https://www.postgresql.org/docs/current/pgbench.html):
7878

7979
```bash
80-
docker exec my_postgres_container pgbench postgres://pgroot:1234@localhost:5433/local -i
80+
docker exec postgres_container pgbench postgres://pgroot:1234@localhost:5433/local -i
8181
```
8282

8383
3. Create a dump of the database using [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html):
8484

8585
```bash
86-
docker exec my_postgres_container pg_dump postgres://pgroot:1234@localhost:5433/local --inserts \
86+
docker exec postgres_container pg_dump postgres://pgroot:1234@localhost:5433/local --inserts \
8787
--column-inserts --encoding=utf_8 --rows-per-insert=1000 > dump.sql
8888
```
8989

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PostgreSQL функции
22

3+
{% include [./_includes/alert.md](./_includes/alert_preview.md) %}
4+
35
В данном разделе содержатся PostgreSQL функции, поддерживаемые в режиме совместимости {{ ydb-short-name }} с PostgreSQL. В разделе сохранены оригинальная структура документации PostgreSQL и примеры применения функций. Данная статья автоматически пополняется и тестируется, поэтому текст представлен только на английском языке.
46

57
{% include [functions](./_includes/functions.md) %}

ydb/docs/ru/core/postgresql/import.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
1. Поднять докер-контейнеры с PostgreSQL и {{ ydb-short-name }}:
8181

8282
```bash
83-
docker run --name my_postgres_container \
83+
docker run --name postgres_container \
8484
-e POSTGRES_USER=pgroot -e POSTGRES_PASSWORD=1234 \
8585
-e POSTGRES_DB=local \
8686
-p 5433:5433 -d postgres:14 -c 'port=5433'
@@ -94,13 +94,13 @@
9494
2. Сгенерировать данные через [pgbench](https://www.postgresql.org/docs/current/pgbench.html):
9595

9696
```bash
97-
docker exec my_postgres_container pgbench postgres://pgroot:1234@localhost:5433/local -i
97+
docker exec postgres_container pgbench postgres://pgroot:1234@localhost:5433/local -i
9898
```
9999

100100
3. Сделать дамп базы через [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html):
101101

102102
```bash
103-
docker exec my_postgres_container pg_dump postgres://pgroot:1234@localhost:5433/local --inserts \
103+
docker exec postgres_container pg_dump postgres://pgroot:1234@localhost:5433/local --inserts \
104104
--column-inserts --encoding=utf_8 --rows-per-insert=1000 > dump.sql
105105
```
106106

0 commit comments

Comments
 (0)