Results 1 to 2 of 2
  1. #1
    Join Date
    May 2015
    Posts
    1

    Question Unanswered: Solution for ACCESS EXECLUSIVE LOCK in table while truncating

    Hi ,
    I am using postgresql and am working in DW project and while truncating a table .The tables gets locked and it gets "ACCESS EXECLUSIVE LOCK".How to resolve this issue.As of now i am using delete scripts for this.But anyway is there to resolve this issue

    Thanks,
    Debayan
    Last edited by debucts; 05-19-15 at 14:22.

  2. #2
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    You need to commit your truncate statement.
    I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags: http://www.dbforums.com/misc.php?do=bbcode#code

    Tips for good questions:

    http://tkyte.blogspot.de/2005/06/how...questions.html
    http://wiki.postgresql.org/wiki/SlowQueryQuestions
    http://catb.org/esr/faqs/smart-questions.html

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •