Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKCUM-0008WC-D2 for pgsql-general@arkaria.postgresql.org; Sun, 29 Aug 2021 04:32:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKCUK-00077h-BR for pgsql-general@arkaria.postgresql.org; Sun, 29 Aug 2021 04:32:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKCUK-00077Z-0L for pgsql-general@lists.postgresql.org; Sun, 29 Aug 2021 04:32:08 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mKCUE-00070k-GF for pgsql-general@lists.postgresql.org; Sun, 29 Aug 2021 04:32:07 +0000 Received: by mail-qk1-x735.google.com with SMTP id p4so5604133qki.3 for ; Sat, 28 Aug 2021 21:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=F18xDxYXzKSyCuIBgmMkt8PqP5Al9KtEXCY5Cav0Fek=; b=rE+dAHfWN12Qe91JkKTpa10r3xOdVJ7TDKMGW46JD6ccNQaoQKHGxvSp/NZ9ZbSr03 o0iztRTtRpRXIsKwuWmuQCsCL0NNDMeUoTwdxpaghla+praUnpp2hBaXoXZ5JOwOy4O6 MRK2sEBLLeUi320ptzCF6FM9NxEssgaLFL3oZsj2WCzSAbnwFmAIHkleBB1ZOsj6ESNH qLn39YFsMZ+BPVV59BOLu327XVThCnu9M3jna2gSojsVCqGOgm2ZWbUSG3bstfwErG21 LQDUokoRJMSd+T76WthIo1PwvXYLLn5cfDoiovmOH/5GayrZr47vmOR9s/JuNzDLZk1i yjKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=F18xDxYXzKSyCuIBgmMkt8PqP5Al9KtEXCY5Cav0Fek=; b=Y9W4E1HCMi2CIQPefT4bPaCBz2mubqXCfqc431HVx7HuCPMoMySUIHSh+92+YfGIqT rFN+CmJSBagnU3KHKqAjxKfHllhRMEtuR5id20oE8kJPsVFUycheQzkVFbnYXjOT0glN O0YnwfDAfu6hWYkoNbZO23+zudhuTnU+Q1Ygp6oAEC9CWg1y71gD6E9Blv9kX7omi+jj PfUWykwmQCPThNJlCdWCOZCNE4Sj0DhNGzf2GgGyncfBImib5+8aKWRqUVt9IKlahXFq JLoIQAiaowKMa+u7HLhRqrgc5NSVmUfe7EUiBWfHop3LjjkQl7WyCgplhnb3oeZm+Ro0 mkOw== X-Gm-Message-State: AOAM531e9NOxAssuLTyPAhQsaNA0KF9SDdyS+9Fde2/fNWTNaDFzgyRs acLo3FIt1yp64H7EbNSj5WIzQxv+EULexw== X-Google-Smtp-Source: ABdhPJzjUwRKsYdCzA+JPwf1qunrLyIdgcaCIWFklig4Ha+pn3K/lmjyZOHSEi6JqXG8Q56ksEyzJg== X-Received: by 2002:a05:620a:4001:: with SMTP id h1mr16764772qko.454.1630211518781; Sat, 28 Aug 2021 21:31:58 -0700 (PDT) Received: from [192.168.2.100] (pool-100-8-54-81.nwrknj.fios.verizon.net. [100.8.54.81]) by smtp.gmail.com with ESMTPSA id c15sm8469170qka.46.2021.08.28.21.31.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Aug 2021 21:31:58 -0700 (PDT) Subject: Re: Insert statement doesn't complete To: pgsql-general@lists.postgresql.org References: From: Mladen Gogala Message-ID: <611d95bb-c3da-6231-ef16-9765eb6cfe68@gmail.com> Date: Sun, 29 Aug 2021 00:31:57 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------8187290E2CAC70A35A745AD3" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------8187290E2CAC70A35A745AD3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 8/28/21 11:40 PM, Trang Le wrote: > Hi all, > > I am facing an issue > > when I run a script: > INSERT INTO mdm.etl_exception_info > SELECT >         * > FROM mdm.etl_exception_info_vw2; Is there any error message thrown? If there is, can you tell us? Is autocommit on? What does the log say? > after running script I check this script in pg_lock, everything ok, job > done, data is inserted. However, the session contains the script above > doesn't complete though data is inserted and job done that is verified in > pg_lock. What does the phrase "the script above doesn't complete" mean? How do you know that the script doesn't complete? Is the script hanging?  Furthermore, what is the software version? What platform are you using? > > Could you help me on this issue? Insufficient data for a meaningful answer. > > Thanks all. > > Regards, > Trang -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com --------------8187290E2CAC70A35A745AD3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit


On 8/28/21 11:40 PM, Trang Le wrote:
Hi all, 

I am facing an issue

when I run a script:
INSERT INTO mdm.etl_exception_info
SELECT
        *
FROM mdm.etl_exception_info_vw2;

Is there any error message thrown? If there is, can you tell us? Is autocommit on? What does the log say?

after running script I check this script in pg_lock, everything ok, job
done, data is inserted. However, the session contains the script above
doesn't complete though data is inserted and job done that is verified in
pg_lock.

What does the phrase "the script above doesn't complete" mean? How do you know that the script doesn't complete? Is the script hanging?  Furthermore, what is the software version? What platform are you using?


Could you help me on this issue?

Insufficient data for a meaningful answer.



Thanks all.

Regards,
Trang
-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
--------------8187290E2CAC70A35A745AD3--