Skip to content

How to execute arbitrary SQL in postgres? #39

Closed

Description

@martingrayson

I'd like to execute a series of SQL statements on Redshift.

I'd planned to use the SqlSensor to do this but failed to read the part of the documentation about executing a statement until a criteria is met. I just need to execute regardless of the result set.

Is there a way of doing this without using the PythonOperator and opening my own postgres connection? It looks as if I want a MySqlOperator for postgres.

Activity

  1. martingrayson commented on Jun 17, 2015

    @martingrayson
    Author

    Sorry - I can see there's an optional package for postgres (that I even installed) ;) Its just not in the documentation yet.

  2. changed the title [-]How to execute arbitrary SQL?[/-] [+]How to execute arbitrary SQL in postgres?[/+] on Jun 17, 2015
  3. mistercrunch commented on Jun 17, 2015

    @mistercrunch
    Member
  4. martingrayson commented on Jun 17, 2015

    @martingrayson
    Author

    Thanks mistercrunch 👍 I'm really not sure how I missed that in the documentation !

  5. added a commit that references this issue on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions