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 1kXPd0-00070I-8N for pgsql-admin@arkaria.postgresql.org; Tue, 27 Oct 2020 14:07: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 1kXPcz-0005db-7H for pgsql-admin@arkaria.postgresql.org; Tue, 27 Oct 2020 14:07:09 +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 1kXPcy-0005dU-SP for pgsql-admin@lists.postgresql.org; Tue, 27 Oct 2020 14:07:09 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kXPcw-0006b7-Al for pgsql-admin@postgresql.org; Tue, 27 Oct 2020 14:07:08 +0000 Received: by mail-ed1-x541.google.com with SMTP id o18so1575581edq.4 for ; Tue, 27 Oct 2020 07:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=v3JkBbu+1dS/EjZXt4k4C4WzVQYoymtj8h4ShQ/5Slc=; b=dRtgkIGwxnqyYVesx/4cEYmAz58RrsKjNHTiETH5AjQvd4b+pwMAdzsLuBDpeU2WEk Kx0Mqd7BbkvDEWHCyEL0hyDz7oAR1RiS9L57mSd834dmdm283kOkbMkU85TFhjeet+30 TfWGIJVEyECWJazIiXf/CthLEwLzK+sTVnZafBUnhBFo0RURBqemF3jijtrfa4P+F+3Z yMnilgsVTwkhoerF1Yj3iwlPGVIYrDgwrGKxMXJ8XU6uxPIqdIy4ElCgzQl288pniB2T ZLRwfasNOCHeqPe3VfceOYCHGk0WEX1ksjxhwnNwqqC/V8G2/rMpJxriBWyoZatJcyrv +nFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=v3JkBbu+1dS/EjZXt4k4C4WzVQYoymtj8h4ShQ/5Slc=; b=Q3r4isPj+oXPghvon11yR0hlAfbz6w5JHgVo6trKlZjNarmQvtwfbi5iz59oOc/bQM /rcFHERzH+Y+Og7YyijEmhaUYJvl4cD7oZoZtp3Si3xJ1e0KvkACMhxRuK0skTdnZh5V /8yVXn3erfWmmEhENuX/Q0WK47ouVmRE45WLixd69A3Sy2wILIhNESdaqk1Wa1cDtsn+ PIDRUhvFk2dZQd91eJw0R1biDLsOVJmP7dT6ufLz/3HbdYat1HD36JpdQPHsd6VJ4XD1 X54c+edUXsv75ukHjANCzncfqJeJ696kLearo0NRPlBCSgg6ESIJqbIjMsmmktScxqy/ 0Skg== X-Gm-Message-State: AOAM533ahG/QLZctagypAtOFg8R5FXZccheRPqPpC6JlUVZcDUySE6qf 9v+sOo+/d4zDSbzinqU6CBnn5w== X-Google-Smtp-Source: ABdhPJxoQ8LyjBqttTCQFf66ieFpSCfHrx66f4FWjWbEd7c/MrXyRYw3IV2O3HULZOFJgcE6fwjhXA== X-Received: by 2002:aa7:c84b:: with SMTP id g11mr2332802edt.86.1603807623921; Tue, 27 Oct 2020 07:07:03 -0700 (PDT) Received: from localhost.localdomain (217-149-174-2.nat.highway.telekom.at. [217.149.174.2]) by smtp.gmail.com with ESMTPSA id r3sm1045420edw.42.2020.10.27.07.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 07:07:03 -0700 (PDT) Message-ID: <5c66e825f5edca6ad9eb3e7eba587208c8f303fb.camel@cybertec.at> Subject: Re: wait_event_type IO & wait_event CopyFileRead From: Laurenz Albe To: Naveen Kumar , pgsql-admin Date: Tue, 27 Oct 2020 15:07:02 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-10-27 at 17:27 +0530, Naveen Kumar wrote: > I can see my query in wait_event_type IO, wait_event CopyFileRead in pg_stat_activity, > Its been running from 4 hours, Can anyone help me understand to wait_event_type IO, > wait_event CopyFileRead, how to proceed with my query execution. That means that PostgreSQL is reading a file that it wants to copy to another file, and it it waits for the read operation to finish. If you are stuck on this for a long time, perhaps you have a file on a networked file system, and the network connection went bad. It is hard to say more without knowing what your query is and where the file resides. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com