Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Postgres: Prevent temp relation identifiers from being too long
Related: dbt-labs#2197 The currently postgres `make_temp_relation` adds a 29 character suffix to the end of the temp relation identifier (9 from default suffix and 20 from timestamp). This is a problem now that relations with more than 63 characters raise exceptions. The fix is to shorten the suffix and also trim the base_relation identifier so that the total length is always less than 63 characters. An exception can also be raised if the default suffix is overridden with a value that is too long.
- Loading branch information