5

I'm working with an ETL tool, Business Objects Data Services, which has the capability of specifying parallel execution of functions. The documentation says that before you can do this, you have to make sure that your database, which in our case is Postgres, allows "a stored procedure to run in parallel". Can anyone tell me if Postgres does that?

Henry
  • 600
  • 2
  • 7
  • 22

3 Answers3

5

Sure. Just run your queries in different connections, and they will run in parallel transactions. Beware of locking though.

Dmitry Negoda
  • 2,894
  • 2
  • 18
  • 15
0

You can also call different stored procedures from the same connection (and effectively still run them in parallel) by using DBLink.

See this SO answer to see an example.

Community
  • 1
  • 1
Robins Tharakan
  • 2,209
  • 19
  • 17
0

Use pgcron to schedule the procedure as many times you want. Use arguments to make the procedure act on different sets of data.