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 1mxA24-00013F-6p for pgsql-general@arkaria.postgresql.org; Tue, 14 Dec 2021 15:48:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxA22-0003wJ-Kq for pgsql-general@arkaria.postgresql.org; Tue, 14 Dec 2021 15:47:58 +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 1mxA22-0003w4-9q for pgsql-general@lists.postgresql.org; Tue, 14 Dec 2021 15:47:58 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mxA20-0003SO-8X for pgsql-general@lists.postgresql.org; Tue, 14 Dec 2021 15:47:57 +0000 Received: by mail-oi1-x22c.google.com with SMTP id u74so27627346oie.8 for ; Tue, 14 Dec 2021 07:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=IIcB9JbTlBdw/QLd3P9XsMxYOYC1Z9ptYGh4Pqtgd0k=; b=LZJfavANwtOfyr0TPD7aI0gcGOeIEaO56/T1Rd0eNriSN03Ze8SYsFxDqrSBfABgau EdnhEcXol/8UxVKn3pxhyB/woIPH3tc6vp0r1GkxXPf/M/+TsojR7+R5fBZ8x7L2k/Yj rNpMKzZV2sActoyMwG3daUCb6/SjIkKgrfLddrxc7+xXu0QAvc0F045ass8xyqmdl1qo ke6fB5PrZQzDO6eTUByKoWxXotlts+aIDEUuoZ/OFe+7dYPv28qlnYTTRkuciY10lCW9 9RwMgARSEAhOrg/FAia/KQ7wMtl2i01lchCjHYyajyWvBI2runKpy1DnvqYx9D8Xv/xw Y7bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=IIcB9JbTlBdw/QLd3P9XsMxYOYC1Z9ptYGh4Pqtgd0k=; b=bHbDx13sYTW58XEWiiDhUHeTJAQVMc9DHu/5cnWNCGSJmCJCijtapt4hsMAhZ8VsDh tUp7a6D5De35Bg2l5q9a6c1Yr2znqZ07XRroQl6TwZZjYwEKYQjcs/Mb6V2diIfrpTn5 mcRO0firkvRteYF4FnloqxkAA/4Rn1ZB428BaIX6Gna6TXJhhlCLSzbQoUlaTQatQ/mp ThFRw+0SQFZoCNWc/CkN1DuuHTSXtlAs7S0k077SXVOTsTotz4TMkkJEddYpqQ87dwZp i+pbOxBmuzn42+U7dpbYLBAC5u4kgXHdnrbem9324lzVbQEwyEBaUNVq1ADO+bi7PAIO MuUg== X-Gm-Message-State: AOAM5301ZvhhB8TDW8nSbuAt1+tlnCGyKIzDTDxYvvjmtdMkORzY86Sp rfagzcJkAYlCXEfGRqe5Ifepf1bat2s= X-Google-Smtp-Source: ABdhPJwzS11wXUzrjWOQs9Bm3OceVh0NF5B/1pWhMVHynk74av15j7PqVOVsg3cxSiPqE1uJEP/u1g== X-Received: by 2002:aca:581:: with SMTP id 123mr4985126oif.13.1639496874299; Tue, 14 Dec 2021 07:47:54 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id k8sm42593oon.2.2021.12.14.07.47.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Dec 2021 07:47:53 -0800 (PST) Subject: Re: timestamp default current_timestamp not working To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <121e7c05-1e2d-789c-4cff-022697468156@gmail.com> Date: Tue, 14 Dec 2021 09:47:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------58ABB1C0E46CB7148B13B3E0" 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. --------------58ABB1C0E46CB7148B13B3E0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/14/21 9:36 AM, Sanjay Minni wrote: > Hi > > I am not getting the timestamp value which i am expecting to be > automatically inserted in the column defined: > ... > "timestamp" timestamp with time zone DEFAULT CURRENT_TIMESTAMP, > ... > (I see the above definition in pgadmin4 in the tab SQL. > I have set it thru pgadmin4 table->properties->columns by entering > CURRENT_TIMESTAMP in the default column) > > why is the timestamp value not being automatically inserted by the system We do not know *exactly* what you're doing,  (Always provide sample code when asking a "why doesn't this work?" question.) -- Angular momentum makes the world go 'round. --------------58ABB1C0E46CB7148B13B3E0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/14/21 9:36 AM, Sanjay Minni wrote:
Hi

I am not getting the timestamp value which i am expecting to be automatically inserted in the column defined: 
...
"timestamp" timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
...
(I see the above definition in pgadmin4 in the tab SQL. 
I have set it thru pgadmin4 table->properties->columns by entering CURRENT_TIMESTAMP in the default column)

why is the timestamp value not being automatically inserted by the system

We do not know exactly what you're doing,  (Always provide sample code when asking a "why doesn't this work?" question.)

--
Angular momentum makes the world go 'round.
--------------58ABB1C0E46CB7148B13B3E0--