Turning echo on in Postgres, for debugging.

Posted on 2007-07-20
Last Modified: 2008-02-01
Any idea how to turn postgres echoing on, so when I run a simple function, I can see the lines of code execute?

Question by:gmanpert
    1 Comment
    LVL 10

    Accepted Solution


    I don't think such thing is possible.
    However, you could try to print some messages in the log to see what is going on in the function.
    You use:
    RAISE level 'format' [, expression [, ...]];
    Possible levels are DEBUG, LOG, INFO, NOTICE, WARNING, and EXCEPTION.

    In this example, the value of v_job_id will replace the % in the string:
    RAISE NOTICE 'Calling cs_create_job(%)', v_job_id;

    Read more here:


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: ( This requires some add-o…
    Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
    Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now