postgresai 0.18.0-dev.7 → 0.18.0-dev.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,14 +7,10 @@ grant connect on database {{DB_IDENT}} to {{ROLE_IDENT}};
7
7
  grant pg_monitor to {{ROLE_IDENT}};
8
8
  grant select on pg_catalog.pg_index to {{ROLE_IDENT}};
9
9
 
10
- -- Required for cluster-wide pg_stat_statements collection.
11
- -- pg_stat_statements is backed by shared memory and holds entries for every database
12
- -- in the cluster, but a role without pg_read_all_stats sees other users' rows with
13
- -- queryid and query text redacted to NULL -- which collapses the per-queryid grouping
14
- -- in the pg_stat_statements metric. pg_monitor already implies pg_read_all_stats;
15
- -- granting it explicitly documents the dependency and keeps the metric working if the
16
- -- pg_monitor grant above is ever narrowed. Idempotent.
17
- grant pg_read_all_stats to {{ROLE_IDENT}};
10
+ -- Cluster-wide pg_stat_statements collection needs pg_read_all_stats (without it, other
11
+ -- users' rows have queryid and query text redacted to NULL). pg_monitor includes it, so it
12
+ -- is not granted directly: on PostgreSQL 16+ that needs ADMIN OPTION on pg_read_all_stats,
13
+ -- which Supabase's `postgres` role does not have (it has ADMIN OPTION on pg_monitor only).
18
14
 
19
15
  -- Create postgres_ai schema for our objects
20
16
  -- Using IF NOT EXISTS for idempotency - prepare-db can be run multiple times
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgresai",
3
- "version": "0.18.0-dev.7",
3
+ "version": "0.18.0-dev.9",
4
4
  "description": "postgres_ai CLI",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,
@@ -7,14 +7,10 @@ grant connect on database {{DB_IDENT}} to {{ROLE_IDENT}};
7
7
  grant pg_monitor to {{ROLE_IDENT}};
8
8
  grant select on pg_catalog.pg_index to {{ROLE_IDENT}};
9
9
 
10
- -- Required for cluster-wide pg_stat_statements collection.
11
- -- pg_stat_statements is backed by shared memory and holds entries for every database
12
- -- in the cluster, but a role without pg_read_all_stats sees other users' rows with
13
- -- queryid and query text redacted to NULL -- which collapses the per-queryid grouping
14
- -- in the pg_stat_statements metric. pg_monitor already implies pg_read_all_stats;
15
- -- granting it explicitly documents the dependency and keeps the metric working if the
16
- -- pg_monitor grant above is ever narrowed. Idempotent.
17
- grant pg_read_all_stats to {{ROLE_IDENT}};
10
+ -- Cluster-wide pg_stat_statements collection needs pg_read_all_stats (without it, other
11
+ -- users' rows have queryid and query text redacted to NULL). pg_monitor includes it, so it
12
+ -- is not granted directly: on PostgreSQL 16+ that needs ADMIN OPTION on pg_read_all_stats,
13
+ -- which Supabase's `postgres` role does not have (it has ADMIN OPTION on pg_monitor only).
18
14
 
19
15
  -- Create postgres_ai schema for our objects
20
16
  -- Using IF NOT EXISTS for idempotency - prepare-db can be run multiple times