apps/docs/content/guides/database/postgres/configuration.mdx
Postgres provides a set of sensible defaults for you database size. In some cases, these defaults can be updated. We do not recommend changing these defaults unless you know what you're doing.
See the Timeouts section.
All Supabase projects come with the pg_stat_statements extension installed, which tracks planning and execution statistics for all statements executed against it. These statistics can be used in order to diagnose the performance of your project.
This data can further be used in conjunction with the explain functionality of Postgres to optimize your usage.
Every Supabase database is set to UTC timezone by default. We strongly recommend keeping it this way, even if your users are in a different location. This is because it makes it much easier to calculate differences between timezones if you adopt the mental model that everything in your database is in UTC time.
<Tabs scrollable size="small" type="underlined" defaultActiveId="sql" queryGroup="database-method"
<TabPanel id="sql" label="SQL">
alter database postgres
set timezone to 'America/New_York';
Get a full list of timezones supported by your database. This will return the following columns:
name: Time zone nameabbrev: Time zone abbreviationutc_offset: Offset from UTC (positive means east of Greenwich)is_dst: True if currently observing daylight savings<Tabs scrollable size="small" type="underlined" defaultActiveId="sql" queryGroup="database-method"
<TabPanel id="sql" label="SQL">
select name, abbrev, utc_offset, is_dst
from pg_timezone_names()
order by name;
Use ilike (case insensitive search) to find specific timezones.
<Tabs scrollable size="small" type="underlined" defaultActiveId="sql" queryGroup="database-method"
<TabPanel id="sql" label="SQL">
select *
from pg_timezone_names()
where name ilike '%york%';