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 1puk6h-0000Ry-Ng for pgsql-general@arkaria.postgresql.org; Fri, 05 May 2023 01:19:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puk6g-00079K-Ik for pgsql-general@arkaria.postgresql.org; Fri, 05 May 2023 01:19:34 +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 1puk6g-00079A-9C for pgsql-general@lists.postgresql.org; Fri, 05 May 2023 01:19:34 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puk6d-000aC9-Il for pgsql-general@lists.postgresql.org; Fri, 05 May 2023 01:19:32 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1puk6c-00Fgf8-Mz; Thu, 04 May 2023 21:19:30 -0400 Date: Thu, 4 May 2023 21:19:30 -0400 From: Bruce Momjian To: Wen Yi Cc: PostgreSQL General Subject: Re: What type of Compiler to SQL? Memory-Image (Load-and-Go) Format? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 4, 2023 at 09:16:20PM -0400, Bruce Momjian wrote: > Lex and yacc load command-specific structures, or a Query structure for > SELECT, INSERT, UPDATE, DELETE, MERGE. > > The Query structure is converted into a Plan which is executed by the > executor. It is not compiled into assembly language. See this: > > https://www.postgresql.org/developer/backend/ Oh, this might help too: https://momjian.us/main/writings/pgsql/internalpics.pdf -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Embrace your flaws. They make you human, rather than perfect, which you will never be.