The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: better Postgres 17 upgrade instructions for deprecated extensions (#38904)
Danny White73eca8ef5d0b
diff --git a/apps/docs/content/guides/platform/upgrading.mdx b/apps/docs/content/guides/platform/upgrading.mdxindex ad0270dbc29..06f677d8333 100644--- a/apps/docs/content/guides/platform/upgrading.mdx+++ b/apps/docs/content/guides/platform/upgrading.mdx@@ -166,6 +166,8 @@ In projects using Postgres 17, the following extensions are deprecated:- `timescaledb`- `pgjwt`-Existing projects on lower versions of Postgres are not impacted, and the extensions will continue to be supported on projects using Postgres 15, until the end of life of Postgres 15 on the Supabase platform.+Projects planning to upgrade from Postgres 15 to Postgres 17 need to first disable these extensions in the [Supabase Dashboard](/dashboard/project/_/database/extensions).++`pgjwt` was enabled by default on every Supabase project up until Postgres 17. If you weren’t explicitly using `pgjwt` in your project, it’s most likely safe to disable.-Projects planning to upgrade from Postgres 15 to Postgres 17 need to drop the extensions by [disabling them in the Supabase Dashboard](/dashboard/project/_/database/extensions).+Existing projects on lower versions of Postgres are not impacted, and the extensions will continue to be supported on projects using Postgres 15, until the end of life of Postgres 15 on the Supabase platform.diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/Infrastructure.constants.ts b/apps/studio/components/interfaces/Settings/Infrastructure/Infrastructure.constants.tsindex 92b696360ac..43c7e404947 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/Infrastructure.constants.ts+++ b/apps/studio/components/interfaces/Settings/Infrastructure/Infrastructure.constants.ts@@ -37,7 +37,7 @@ export const INFRA_ACTIVITY_METRICS: CategoryMeta[] = [attributes: [{ key: 'max_cpu_usage', color: 'white' }],name: 'CPU',unit: 'percentage',- description: 'Max CPU usage of your server',+ description: 'Max CPU usage of your server.',chartDescription: '',links: [{diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsxindex 88c9a63eba5..fead459e7f3 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx@@ -92,9 +92,9 @@ const InfrastructureInfo = () => {<ScaffoldContainer><ScaffoldSection><ScaffoldSectionDetail>- <p>Service Versions</p>- <p className="text-foreground-light text-sm">- Information on your provisioned instance+ <h4 className="text-base capitalize m-0">Service Versions</h4>+ <p className="text-foreground-light text-sm pr-8 mt-1">+ Information on your provisioned instance.</p></ScaffoldSectionDetail><ScaffoldSectionContent>diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsxindex 5937daaddf5..96763ea4dd9 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx@@ -1,6 +1,7 @@import { useParams } from 'common'import Link from 'next/link'-import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button } from 'ui'+import { InlineLink } from 'components/ui/InlineLink'+import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Badge, Button } from 'ui'export const ReadReplicasWarning = ({ latestPgVersion }: { latestPgVersion: string }) => {return (@@ -64,43 +65,39 @@ export const UnsupportedExtensionsWarning = ({const { ref } = useParams()return (- <Alert_Shadcn_- variant="warning"- title="A new version of Postgres is available for your project"- >- <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>+ <Alert_Shadcn_ title="A newer version of Postgres is available">+ <AlertTitle_Shadcn_>A newer version of Postgres is available</AlertTitle_Shadcn_><AlertDescription_Shadcn_ className="flex flex-col gap-3">- <div>- <p className="mb-1">The following extensions have to be removed before upgrading:</p>+ <>+ <p className="mb-1">+ The following extensions are not supported in newer versions of Postgres and must be+ removed before you can upgrade.{' '}+ <InlineLink+ href="https://supabase.com/docs/guides/platform/upgrading#upgrading-to-postgres-17"+ target="_blank"+ rel="noopener noreferrer"+ >+ Learn more+ </InlineLink>+ .+ </p>- <ul className="pl-4">+ <ul className="border-t border-border-muted flex flex-col divide-y divide-border-muted">{unsupportedExtensions.map((obj: string) => (- <li className="list-disc" key={obj}>- <Link- href={`/project/${ref}/database/extensions?filter=${obj}`}- className="hover:text-foreground transition"- >- {obj}- </Link>+ <li className="py-3 last:pb-0 flex flex-row justify-between gap-2" key={obj}>+ <div className="flex flex-row gap-2 items-center flex-1 min-w-0">+ <p className="overflow-hidden text-ellipsis whitespace-nowrap min-w-0">{obj}</p>+ <Badge variant="warning" size="small" className="flex-shrink-0">+ Deprecated+ </Badge>+ </div>+ <Button size="tiny" type="default" asChild>+ <Link href={`/project/${ref}/database/extensions?filter=${obj}`}>Manage</Link>+ </Button></li>))}</ul>- </div>- <p>- These extensions are not supported in newer versions of Supabase Postgres. If you are not- using them, it is safe to remove them.- </p>- <div>- <Button size="tiny" type="default" asChild>- <a- href="https://supabase.com/docs/guides/platform/upgrading#extensions"- target="_blank"- rel="noreferrer"- >- View docs- </a>- </Button>- </div>+ </></AlertDescription_Shadcn_></Alert_Shadcn_>)