0

I have a stored procedure that use temp table and explicitly drops it when done.

What happed when same procedure is run at same time by 2 different sessions? Sessions are run as single user (webapp).

Will one session interfere with temp table, and data inside it, of other session?

I'm using Postgres 9.0.

2 Answers 2

3

In postgresql temporary tables are unique for each session, so no problem.

Sign up to request clarification or add additional context in comments.

Comments

1

If I am not totally wrong, the result would be one temp table per query in your procedure which generates the temp table, so the two temp tables would not disturb eachother.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.