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 1jRekf-00059z-Ur for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 16:31:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jReke-0001gk-SE for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 16:31:00 +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 1jReke-0001gc-Kb for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 16:31:00 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRekc-0005Cs-Ip for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 16:31:00 +0000 Received: by mail-io1-xd43.google.com with SMTP id i3so6993533ioo.13 for ; Thu, 23 Apr 2020 09:30:58 -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-transfer-encoding:content-language; bh=GpcXqEQlvPl/jT5obCO6p0iGE35ONEHzjVJI9eJqAe0=; b=jwggdR30jCY6+YjB07BhL1hRyMT5KBhhlh4a/AoDtTF8zNhTdTAetluO4v9IRpzW4y 90u3V1iGIsTYMAPy5Y7TwEvIdneK+FnZrqp7jN4txpMt3lf4fbNMuwauh89NcTv0/yIe 2jCN7ZFjeeQJtzwCanG7xeIJuDmdCOTHWiNKtdOrbIjdusN0krVG5/FV6VQv/2rpFfN+ wCA+xHUkQ4jcX67iapQ1EAlP0AxLNFygncqehKUYLllzi9v4k1VLCjEjuVbHXeUyx6AK zdm7nmPSDw37S+7x8bxxFgpIO6dDF97ZAjvpwZRCc1jE2EdGcAPnLAMxxo8Qb+YXRhEU QrFg== 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-transfer-encoding :content-language; bh=GpcXqEQlvPl/jT5obCO6p0iGE35ONEHzjVJI9eJqAe0=; b=Ptcpmr1ntCBaNGVD0l2bd1ik796+ZpsrZmhg6OxR7znHWB40iKOjcvcY1UEAI+D9oU MizQCjbN5usOpOoZ/Ch9QhycPxJONHr6A4usqP/zoUCQHJ00y64k9svwyr6fEVhZbOhk AYaoJkpChkuOK4gDtp4WPhvbAIx/0wiHXGFbn26Zj9/9K4aGmWwFdmKxxKXaGrgFMIJd lI2RX8G/PcfC+BHy1B6aZfF2vy5CEl3hIO8TJPByuYizpAYMTW5TyYQqI8iewuBCsY6a Fn2aokvhiOEGDFY2t3sBU0+jqbm0Ji6+u9qW6mi7B3wXyj/ZvzsIEqe7Lpr0hA1UxnVd Kbjw== X-Gm-Message-State: AGi0PuZEAECxg6iFDYXje2eqZVEfKWgxDR0SeWpwwlLYdVRewZQtCyB+ bAw22aI1mCS8HwnLTOEgbaWO9hGsVdQ= X-Google-Smtp-Source: APiQypIwadvVWgfBBI0C4jWZnz6ijAryKMHLtDbMz1D/IiXEJ93muW1klFHG7EWVtdsvj4lbZZBvWw== X-Received: by 2002:a02:205:: with SMTP id 5mr3839945jau.78.1587659455694; Thu, 23 Apr 2020 09:30:55 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:49ef:d15:cc02:739b? ([2601:681:5500:dde0:49ef:d15:cc02:739b]) by smtp.gmail.com with ESMTPSA id c4sm1031165ils.56.2020.04.23.09.30.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 09:30:54 -0700 (PDT) Subject: Re: Reg: Help to understand the source code To: pgsql-general@lists.postgresql.org References: <322fc32d-fe47-5d17-c842-e661d5e2b605@aklaver.com> From: Rob Sargent Message-ID: <7d98b6fc-56e3-f15f-eb14-3c2f42dcaf50@gmail.com> Date: Thu, 23 Apr 2020 10:30:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/23/20 10:28 AM, Preethi S wrote: > Hello Adrian, > > Thank you for the quick reply. This link is indeed helpful. This link > explains how is a query processed. I am aware of how the query > processing happens. > > In addition, I am looking for how the data processed, when data is > inserted/modified, does the new data gets written to shared buffer -> > WAL -> disk ? > > I would like to see the code that does this. (For example, data > written into shared_buffer, wal_buffer, wal_segments and then fsync) > What tools are you using to examine the code?