pgAdmin II send messages to the output query window

Posted on 2007-10-18
Last Modified: 2008-01-09
How do I send messages to the output pane from the pgAdmin III query window?  

I have a large script that goes through many steps and takes about 5 minutes to run.  I want to put in audit lines, so I know where the progress of the script is.  Pseudo code would be: PRINT "Completed Step 1";

the "Print" function would pass the text to the output window and Completed Step 1 would appear in it...
Question by:FreightTrain
    1 Comment
    LVL 22

    Accepted Solution

    If you are in plpgsql environment you can use RAISE NOTICE


    RAISE NOTICE 'Calling cs_create_job(%)', v_job_id;

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Title # Comments Views Activity
    Netezza Function 9 4,172
    script for Galera cluster 4 286
    delete table if exist then create table postgres 1 389
    postgreSQL - query problem 3 16
    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!

    737 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

    20 Experts available now in Live!

    Get 1:1 Help Now