Database configuration
Updating the default configuration for your Postgres database.
A guide from Supabase
Apps on Plentiful run on Supabase's open-source database, sign-in, file storage and live updates, so most of this guide applies. The differences: your app reaches its database through its own server — not Supabase's data API (supabase.from(…)) — there are no Edge Functions (your app's server does that work), and scheduled work uses Jobs. Where it says "Supabase dashboard", use your app's Dashboard. Ask the builder when in doubt.
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.
Timeouts#
See the Timeouts section.
Statement optimization#
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.
Managing timezones#
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.
Change timezone#
1alter database postgres2set timezone to 'America/New_York';Full list of timezones#
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
1select name, abbrev, utc_offset, is_dst2from pg_timezone_names()3order by name;Search for a specific timezone#
Use ilike (case insensitive search) to find specific timezones.
1select *2from pg_timezone_names()3where name ilike '%york%';