Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres hits the max table name length #1750

Closed
michel-tricot opened this issue Jan 21, 2021 · 2 comments
Closed

Postgres hits the max table name length #1750

michel-tricot opened this issue Jan 21, 2021 · 2 comments
Labels
type/bug Something isn't working

Comments

@michel-tricot
Copy link
Contributor

michel-tricot commented Jan 21, 2021

Expected Behavior

We should properly take into account destination limitations when creating tables.

Current Behavior

Daniel Fraser had the following issue while replicating data into PG:

“Runtime Error in model” … “Relation name ‘xyz.abc__dbt_backup’ is longer than 63 characters

This is a problem that we can encounter for several reasons:

  • we prefix table names
  • DBT seems to be creating maintenance tables

Steps to Reproduce

(Not tested)

  1. Try replicating a table of 63 char into PG

Severity of the bug for you

Medium

┆Issue is synchronized with this Asana task by Unito

@michel-tricot michel-tricot added the type/bug Something isn't working label Jan 21, 2021
@ChristopheDuong
Copy link
Contributor

Related to dbt-labs/dbt-core#2869

@ChristopheDuong
Copy link
Contributor

Since #1737, we rename destination tables with _airbyte_raw suffixes, we should probably make sure that table names have to be less than 51 characters (63 -12 from the added suffix) on Postgres destinations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants