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 1kiYMi-0003eC-TS for pgsql-admin@arkaria.postgresql.org; Fri, 27 Nov 2020 07:40:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kiYMh-00085D-SB for pgsql-admin@arkaria.postgresql.org; Fri, 27 Nov 2020 07:40:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiYMh-000850-KJ for pgsql-admin@lists.postgresql.org; Fri, 27 Nov 2020 07:40:23 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kiYMb-0008Fl-AB for pgsql-admin@lists.postgresql.org; Fri, 27 Nov 2020 07:40:22 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a16so6248254ejj.5 for ; Thu, 26 Nov 2020 23:40:16 -0800 (PST) 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=TvrPg0xLb+ZIQ1lwnkplsijs0A6ZmbJTQTsjLgYyZPk=; b=MAFLUgDZgGyV9249glkhi4MoYF6fQFm635m8M1zuQPNuTnaSatiMUZ1F8YJhfwxThN zKi8iM2NeGIglYB4dWfQ/usD0W5IVQoWBo/dVGpqOT/v46TD8cXvYyad0ho2KtJG/KWa DGIdviKRsFLmTPtZ8c8F4a8iZnuavFKjBzV5FRP9wv2tNtXNaws4OpLoxwNvK1I1n4v3 9z5OKMlGVqoKKYn6KtOx2hz40UaiUThNGBBJwEfoBX8F1dHrHQq5TGPNg608g6E7N5eV b/zRathQp75T3ocxSqhw42zYK9VSQFYMIXkCezF6DBWPPf/725cOh+RCfUJ8I6ViUk9G gFQA== 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=TvrPg0xLb+ZIQ1lwnkplsijs0A6ZmbJTQTsjLgYyZPk=; b=Y0sq6RGUEOqkLYxzSUL3NC9xSUXMURJbWbaS7pC/wu6R+eUa9BeoxZFjYDR3WlJz/4 Dg49xO6mxsdQ19HuOA95gFOFeyHchZLOZA14bdJJhdhQaX8RZvq8JWBQIrBGz3AbC47g ZKzYumnNB7sq9tlDUFZEzm4BT7Bpht9qXaUknMtdh9loViVdqhQClMvN03AhJtrSHfPC CB/AMUzRqPUmDzIhRIRpBJUIbXRJLlfkjX8BL+s35nCEWDjYfGD7I9MZ/kymoyJj8NWo vIYQNofHpS9eeMOC9jwO1aKtTdBQ/LQj0B3Pr1uIJ4Qg9rCfoV7NcvF8caPd5VuakxAN cnxg== X-Gm-Message-State: AOAM532vLiNyjRFHp7fGT6xf8vVrP0WGrjiQSUluZhaXyLbWKX0260uc gYJElCmAQiOGvAmnOYWlnKb2bA== X-Google-Smtp-Source: ABdhPJyM4jVu1b9rcXmsAZvOf2ZxzcB91fP2mvaA0lqshvPMFIVPq8xI3621EG4LcSn8QV+VCw5VEw== X-Received: by 2002:a17:906:bcf9:: with SMTP id op25mr6276725ejb.223.1606462815012; Thu, 26 Nov 2020 23:40:15 -0800 (PST) Received: from localhost.localdomain (178-190-168-149.adsl.highway.telekom.at. [178.190.168.149]) by smtp.gmail.com with ESMTPSA id d19sm4567148eds.31.2020.11.26.23.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 23:40:13 -0800 (PST) Message-ID: Subject: Re: Query column null From: Laurenz Albe To: Yambu , Pgsql-admin Date: Fri, 27 Nov 2020 08:40:13 +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 Thu, 2020-11-26 at 20:50 +0200, Yambu wrote: > A strange thing is happening in my csv logs, i cannot see the query that ran whenever there is a duration in the logs, is there something i'm missing? > > When i run the below query it returns nothing > > select message,query from postgres_log where message ilike '%duration%' and query is not null limit 1; > > Note: I loaded the csv logs into postgres_log table. Hard to say with that information, but perhaps you set "log_duration = on". If you use "log_min_duration_statement = 0", you might get what you want. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com