GithubHelp home page GithubHelp logo

plan-exporter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plan-exporter's Issues

"target" in welcome message may not be accurate

Sometimes I like to use a service running on my own machine, thus I set --post-url.
In the next line, the welcome message tells me that the mentioned target is still "depesz".
This is a very minor issue which doesn't really need to be fixed. It's easy to understand that this is not taken into account.

temboard=# \o | plan-exporter --post-url=http://0.0.0.0:5000/new
temboard=# Welcome to the query plan exporter. Target: depesz.

I see 2 options to solve this:

  • get rid of the --port-url option and use --target all the time. The utility would then check if it's a known target, or would consider it as a URL instead.
  • change the welcome message and show the post-url instead of the target.

Export to service from outside psql

Is there a way we could use plan-exporter outside psql?

My goal: running a query which is saved in a file.

The command would probably look like:

psql -f my_explain_file.sql | plan-exporter --target=dalibo

Do you see any way I could this working?

As a workaround, what I currently do is:

postgres=# \o | plan-exporter
postgres=# \i my_explain_file.sql

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.