GithubHelp home page GithubHelp logo

Comments (4)

sweatybridge avatar sweatybridge commented on September 26, 2024 4

I ran into similar problem before and resolved it by setting pgaudit.log = 'none' in the migration file before creating postgis extension. For eg.

SET pgaudit.log = 'none';

CREATE EXTENSION IF NOT EXISTS "postgis" WITH SCHEMA "extensions";

Here's the full working migration file: https://github.com/sweatybridge/cli-demo/blob/main/supabase/migrations/20230803025559_remote_commit.sql#L12

from supabase.

Pierre-Saigot avatar Pierre-Saigot commented on September 26, 2024 1

Thanks for opening, just to confirm have you tried dropping pgaudit in case it was created elsewhere?

DROP EXTENSION IF EXISTS pgaudit;

It could also be that, while it is not enabled, the setting is still set. In that case you can modify the pgaudit setting beforehand.

If that is the case, then you can change the log setting with set pgaudit.log='none'

I don't have the pgaudit extension on my databases. Just in case, I've executed the DROP EXTENSION command and the 'set pgaudit.log='none'' command, but it didn't work.

I specify that this is only on my 'preview/dev' branch, just after generating it, and that my main PostGIS branch is activated without any problem. And I've never activated pgaudit, it is indeed deactivated...

from supabase.

Pierre-Saigot avatar Pierre-Saigot commented on September 26, 2024 1

Indeed, it works! Thanks for the tip, it saves me!

from supabase.

encima avatar encima commented on September 26, 2024

Thanks for opening, just to confirm have you tried dropping pgaudit in case it was created elsewhere?

DROP EXTENSION IF EXISTS pgaudit;

It could also be that, while it is not enabled, the setting is still set. In that case you can modify the pgaudit setting beforehand.

If that is the case, then you can change the log setting with set pgaudit.log='none'

from supabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.