Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Allow setting null for connection pool size (#50726)

Joshen Lim5b18f1d084bc
diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
index 459d54b96ac..c55ac329c78 100644
--- a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
@@ -129,7 +129,7 @@ export const ConnectionPooling = () => {
updatePoolerConfig(
{
ref: projectRef,
- default_pool_size: default_pool_size === undefined ? defaultPoolSize : default_pool_size,
+ default_pool_size: default_pool_size === undefined ? null : default_pool_size,
ignore_startup_parameters: ignoreStartupParameters ?? '',
},
{
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index ea7ecb39951..ade636caa04 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -6326,6 +6326,10 @@ export interface components {
branch_limit?: number
installation_id: number
new_branch_per_pr?: boolean
+ /**
+ * @description Project ref
+ * @example abcdefghijklmnopqrst
+ */
project_ref: string
repository_id: number
supabase_changes_only?: boolean
@@ -7851,6 +7855,10 @@ export interface components {
metadata: {
[key: string]: unknown
}
+ /**
+ * @description Project ref
+ * @example abcdefghijklmnopqrst
+ */
supabase_project_ref: string
}
organization_integration_id: string
@@ -7861,6 +7869,10 @@ export interface components {
metadata: {
[key: string]: unknown
}
+ /**
+ * @description Organization slug
+ * @example tsrqponmlkjihgfedcba
+ */
organization_slug: string
source: string
teamId?: string