Skip to content

Commit 7b73398

Browse files
authored
refactor: query_plan -> query_plans (#82)
1 parent 5afab5a commit 7b73398

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/enterprise_edition/plans.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Query plan collection is disabled by default and can be enabled in `pgdog.toml`:
1616
```toml
1717
[query_stats]
1818
enabled = true
19-
query_plan_threshold = 100 # Queries slower than 100ms will be planned.
19+
query_plans_threshold = 100 # Queries slower than 100ms will be planned.
2020
```
2121
=== "Helm chart"
2222
```yaml
2323
queryStats:
2424
enabled: true
25-
queryPlanThreshold: 100
25+
queryPlansThreshold: 100
2626
```
2727

2828
The plans are stored in memory and deduplicated by _normalized_ SQL of the query. This means that queries with different parameters will be tied to the same query plan, making sure PgDog doesn't plan the same query multiple times.
@@ -33,30 +33,30 @@ The query plan cache is configurable:
3333

3434
| Argument | Description | Example |
3535
|-|-|-|
36-
| `query_plan_threshold` | Minimum query runtime that triggers a query plan (in ms). | `100` |
36+
| `query_plans_threshold` | Minimum query runtime that triggers a query plan (in ms). | `100` |
3737
| `query_plans_sample_rate` | Percentage of all queries executed through PgDog that will be planned, irrespective of their runtime (between 0.0 and 1.0). | `0.5` |
3838
| `query_plans_cache` | Maximum number of entries in the in-memory plan cache. | `500` |
39-
| `query_plan_max_age` | Query plans older than this are considered stale and will be replanned if the query is executed again (in ms). | `15_000` |
39+
| `query_plans_max_age` | Query plans older than this are considered stale and will be replanned if the query is executed again (in ms). | `15_000` |
4040

4141
##### Example
4242

4343
=== "pgdog.toml"
4444
```toml
4545
[query_stats]
4646
enabled = true
47-
query_plan_threshold = 100
47+
query_plans_threshold = 100
4848
query_plans_sample_rate = 0.5
4949
query_plans_cache = 1_000
50-
query_plan_max_age = 15_000
50+
query_plans_max_age = 15_000
5151
```
5252
=== "Helm chart"
5353
```yaml
5454
queryStats:
5555
enabled: true
56-
queryPlanThreshold: 100
56+
queryPlansThreshold: 100
5757
queryPlansSampleRate: 0.5
5858
queryPlansCache: 1000
59-
queryPlanMaxAge: 15000
59+
queryPlansMaxAge: 15000
6060
```
6161

6262
### Admin database

docs/examples/control_plane/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
x-pgdog: &pgdog
2-
image: ghcr.io/pgdogdev/pgdog-enterprise:v2026-05-28
2+
image: ghcr.io/pgdogdev/pgdog-enterprise:v2026-06-15
33
command: ["pgdog", "--config", "/etc/pgdog/pgdog.toml", "--users", "/etc/secrets/pgdog/users.toml"]
44
mem_limit: 1g
55
environment:
@@ -32,7 +32,7 @@ services:
3232
image: redis:7
3333

3434
control:
35-
image: ghcr.io/pgdogdev/pgdog-enterprise/control:v2026-05-28
35+
image: ghcr.io/pgdogdev/pgdog-enterprise/control:v2026-06-15
3636
ports:
3737
- "8099:8080"
3838
environment:

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Latest released tag for the Enterprise Docker images. Update this in one
1111
# place; reference it in docs with {{ enterprise_tag }}. Can be overridden at
1212
# build time with the ENTERPRISE_TAG environment variable.
13-
ENTERPRISE_TAG = os.environ.get("ENTERPRISE_TAG", "v2026-06-12")
13+
ENTERPRISE_TAG = os.environ.get("ENTERPRISE_TAG", "v2026-06-15")
1414

1515

1616
def define_env(env):

0 commit comments

Comments
 (0)