Skip to content

Updating to 0.1.16 from 0.1.14 broke my wrapper due to access issues to wrappers.wrappers_fdw_stats #131

@pjmv

Description

@pjmv

Bug report

  • I confirm this is a bug with Supabase, not with my own application. -> Well I can't be 100% sure...
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

I was using a wrapper on my Cloud Supabase install. I needed to upgrade to be able to use the Airtable wrapper. To do so, I paused the project and reinstalled, as per advice offered on Discord (https://discord.com/channels/839993398554656828/1006358244786196510/threads/1144271220414631956)

Since then queries on the foreign tables fail because of permission denied for table wrappers_fdw_stats, even with the postgres user in psql.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Pause/Resume your project on Supabase from a previous version
  2. `select * from stripe.customers limit 3;
  3. see the following error message
ERROR:  permission denied for table wrappers_fdw_stats
CONTEXT:  SQL statement "insert into wrappers.wrappers_fdw_stats as s (fdw_name, create_times) values($1, $2)
         on conflict(fdw_name)
         do update set
            create_times = coalesce(s.create_times, 0) + excluded.create_times,
            updated_at = timezone('utc'::text, now())"

Expected behavior

My previously configured foreign tables to work as previously

System information

Irrelevant as the problem happens server-side at Supabase's

Additional context

I tried grant all on wrappers.wrappers_fdw_stats to postgres; but even that failed with the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions