https://supabase.com/ logo
Join Discord
Powered by
# help
  • s

    Steve

    08/11/2021, 3:48 PM
    Export DB
  • s

    Scott P

    08/11/2021, 3:48 PM
    RLS with role
  • g

    GandalfG

    08/11/2021, 3:50 PM
    Ok, found the issue. For whoever might face it. Supabase in order to insert, needs to also have a select permission to the Policy. Otherwise it wont work. If u dont want to add a select policy, simply add this to your insert statement insert(data, { returning: 'minimal' })
  • g

    GandalfG

    08/11/2021, 3:50 PM
    And fixes the error and u can properly insert data
  • s

    Steve

    08/11/2021, 3:58 PM
    posting IDs to a webhook
  • s

    Steve

    08/11/2021, 4:01 PM
    Transaction insert
  • m

    Mike92988

    08/11/2021, 4:34 PM
    hey there, newbie here. i'm trying to link the auth.users table to my main table. does anyone know if this is possible?
  • f

    fenix

    08/11/2021, 5:18 PM
    Any suggestion on this?
  • d

    Deleted User

    08/11/2021, 5:22 PM
    try nginx reverse proxy
  • d

    Deleted User

    08/11/2021, 5:23 PM
    @User
  • p

    perogies

    08/11/2021, 5:23 PM
    Hello. I am trying to make use of
    file_fdw
    with a .csv file located in
    supabase-storage
    . I installed the extension, created the server reference and it shows up in my db. When I try to access the table, postgres says that it cannot open the file.
  • p

    perogies

    08/11/2021, 5:25 PM
    I'm not 100% sure how storage is networked in relation to the postgres instance. Should I be used a URL for my filename, a relative path for my filename, or something different (e.g. an SFTP path or S3-type path...)?
  • p

    perogies

    08/11/2021, 5:28 PM
    Copy code
    CREATE FOREIGN TABLE mytable (
      mycol1 timestamp(3) with time zone,
      mycol2 text,
      mycol3 text,
      ) SERVER mytable OPTIONS ( filename '??', format 'csv' );
  • p

    perogies

    08/11/2021, 5:33 PM
    option 1:
    'mybucket/myfolder/myfile.csv'
    (not working) option 2:
    'https://myproject.supabase.in/storage/v1/object/sign/mybucket/myfolder/myfile.csv?token=mytoken'
    (no luck but auth requirements not clear)`
  • j

    jianjie

    08/11/2021, 5:45 PM
    i wrote a workaround for this problem here: https://github.com/supabase/supabase/issues/2797
  • w

    wilfredinni

    08/11/2021, 6:33 PM
    Hey! Is there a way to implement an array of Foreign keys?
  • w

    wilfredinni

    08/11/2021, 6:33 PM
    I got an error if I check "Define as array" and add a Foreign key relation
  • w

    wilfredinni

    08/11/2021, 7:10 PM
    Forget it, I'm using an intermediate table😆
  • c

    claud9

    08/11/2021, 7:13 PM
    Does anyone know if there is a way to change the emails that are sent when authenticating? I would love for the emails to be from our domain with our own custom designs.
  • b

    Benanna19

    08/11/2021, 7:48 PM
    Has anyone gotten this error when connecting to supabase db?
    Copy code
    Error querying the database: db error: ERROR: prepared statement "s0" already exists
       0: sql_migration_connector::flavour::postgres::ensure_connection_validity
  • s

    Steve

    08/11/2021, 8:19 PM
    Are you connecting to pgbouncer? That error can come from an ORM(or any client) that uses prepared statements and connects to pgbouncer(which is in transaction pooling mode by default, prepared statements don't work here). Maybe try disabling prepared statements on your client. Or also, try changing pgbouncer "Pool Mode" to "Session".
  • b

    Benanna19

    08/11/2021, 8:33 PM
    @User thanks for getting back to me. I am using keystone which uses prisma. As far as I can tell prisma does use pgbouncer but when I get my really long error message it seems to indicate that pgbouncer is off. So ultimately, because it is abstracted away from me I cannot really tell if I am or am not using it. I will reach out to the keystone team and see if they have any similar issues. Another question, if I am having issues with Docker, would that also affect this? I am not sure how the two would work together but I know that I have been having docker issues. Just curious if this might also be contributing. Thanks @User
  • f

    florian-lefebvre

    08/11/2021, 9:03 PM
    Hi this can be done using foreign keys. Check out the starters in the SQL section of the dashboard to see how it's done
  • m

    Mike92988

    08/11/2021, 9:07 PM
    Thank you!
  • t

    ThisIsJustin

    08/11/2021, 9:09 PM
    Should the
    postgres
    user have rights on the
    auth
    schema? I have project where that is not the case. When I create a new project the user seems to be created WITH the rights.
  • m

    Mike92988

    08/11/2021, 9:28 PM
    so this would work linking the auth.users table that supabase provides with a users table that i've created with seperate data, correct? becuase i keep trying to link them and it doesn't seem to want to work
  • f

    florian-lefebvre

    08/11/2021, 9:30 PM
    Yes it should work
  • f

    florian-lefebvre

    08/11/2021, 9:30 PM
    Are you doing that through the interface or writing an sql schema?
  • f

    florian-lefebvre

    08/11/2021, 9:31 PM
    If it's a schema it's easier to help you
  • f

    florian-lefebvre

    08/11/2021, 9:33 PM
    @Mike92988 https://supabase.io/docs/guides/auth/managing-user-data
1...464748...316Latest