Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7158661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:06:12+00:00 2026-05-28T13:06:12+00:00

I tried to create tables, but it was useless because each begin-end block wrapped

  • 0

I tried to create tables, but it was useless because each begin-end block wrapped in transaction in postgres, so I can’t see any changes before the end of transaction.
The only solution is rising INFO, I use it to show current step of procedure, but its not exactly what I am looking for. I need to know detailed data of current calculations, because every step can take a few hours.
Please suggest me the way to transmit data out of transaction before it ends up.

UPD: I’ve found the way to transmit progress: I can increase sequences from within my procedure, and read them from other connection. http://blog.endpoint.com/2010/04/viewing-postgres-function-progress-from.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:06:13+00:00Added an answer on May 28, 2026 at 1:06 pm

    You can use the dblink extension to connect back to the database and execute statements on a different connection. This is also commonly used for logging errors before a transaction rolls back, for example.

    Quick demonstration:

    CREATE EXTENSION dblink; -- or run the script from contrib before version 9.1
    
    select * from dblink('dbname=steve', $$
           select datname, procpid, current_query from pg_stat_activity
          $$) r(datname name, pid int, current_query text);
    

    produces:

     datname | pid  |                            current_query                            
    ---------+------+---------------------------------------------------------------------
     steve   | 8535 | select * from dblink('dbname=steve', $$                            +
             |      |        select datname, procpid, current_query from pg_stat_activity+
             |      |       $$) r(datname name,                                          +
             |      |           pid int, current_query text);
     steve   | 9235 |                                                                    +
             |      |        select datname, procpid, current_query from pg_stat_activity+
             |      |       
    

    so you can see that these are two separate sessions. dblink provides functionality to open a persistent connection etc. that this simple usage skips over. Provided that you already have a schema to put the progress information into, then you can simply call dblink() to populate/update it via the second connection, while your first connection continues to execute its long transaction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create tables using phpmyadmin but i can't define a column
I create SQL CE 3.5 database dynamically in asp.net webservice. I can create tables,
I knew that we can set innodb as engine tables. But can we add
I am very, very new to MYSQL.I tried to create a table named option.
I have tried with ado.net create table columnName with unique name. as uniquename I
I tried to create this by following the video at http://www.asp.net/learn/videos/video-7026.aspx where Joe Stagner
I tried to create a Style for DataGridTextColumn with the following code <Style TargetType={x:Type
Have anybody ever tried to create thumbnails/previews of MS Office files? I do not
when I tried to create a shared library file using the cl command in
This is the first Python script I've tried to create. I'm reading a xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.