Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnRiM-0006eW-WC for pgsql-general@arkaria.postgresql.org; Tue, 16 Jul 2019 17:58:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnRiK-00017p-KF for pgsql-general@arkaria.postgresql.org; Tue, 16 Jul 2019 17:58:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnRiK-00017g-8T for pgsql-general@lists.postgresql.org; Tue, 16 Jul 2019 17:58:08 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnRiD-0006Us-Hw for pgsql-general@lists.postgresql.org; Tue, 16 Jul 2019 17:58:07 +0000 Received: by mail-oi1-x22d.google.com with SMTP id u15so16323755oiv.0 for ; Tue, 16 Jul 2019 10:58:01 -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-language; bh=I1Je8ag7eRf5B/U+gH16WWWnu1Pyc4r894iwfJvhLlw=; b=IB0/Cxk0mEtafCp4YmgydRd7sA62JDYO/NvJ+wgjz3TfVSPW7BM9L1roiQcyb07Yoj F24D1CP4OEAcavTbUn0hCrwlSq3hEA9S4s9FGF7pNN8aVDQXLxY1Z7qOoymNq+cN5pvI mP0WOKY/E++8VxdZf5AQtfrota7C/GOjAqN3sSQBf4fp4xMWZFYGIPTLYqhF8/XEibyt 8BAMY9wgLQOdSxv0ZvbCSdRlceMhK/RwWqtKqYTjo+9PcezGMEIJw5sSBEMzys9lvfGU XTuQQkG6b8gK5ENKbjcqcjOTFqQ4uLoOy48Yfo2fC/NgsWTtwTYfdwD+rr3ZEh3QUbyP w7DA== 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-language; bh=I1Je8ag7eRf5B/U+gH16WWWnu1Pyc4r894iwfJvhLlw=; b=XdWZp8RqIrIl0oyChhXxdWNKpSBA3cODr8u0fQvUOhRNZGXWQXTRGxVm8iLPgSRWSP vBalFT8zz1+YudmYKsebCcNbbnno26gkyaj8Cdn8KBj8MCU2NodLc8Qo1Gswma+WioFu I3l9ZTPoWb+uVGGDnpiBR/vXypHv3Tz1WFT5l5umS62HP9lCTG1PuCryLkDUx8kif3Zl N1STES9FLSTaC6W7fJrqLC7e8/PANT2BeRPMCDf49fH7zxQksayF/7/cJHITJfJyJbcn MEVCrs5LWmBTlxwFODpOanyatdo5d6Vu0cyKtDXMH2Eu+31m/0JtUCA8IiyfN/izHGA9 qklA== X-Gm-Message-State: APjAAAUePE6O0O6kQRJ2Ci3SBcMocS3zaRe0MjVufoDgaHPKwlvzdecF enDZttjgDhMAdY+Fll/6KvpaxRusdQg= X-Google-Smtp-Source: APXvYqyJjqZmmirMj7vxUZam0YBMfidaFEve5X44bfiNXs6HL5ylDZi7TDBc4SGfgYF2LQ/+/OrCGQ== X-Received: by 2002:aca:af55:: with SMTP id y82mr16645986oie.172.1563299879080; Tue, 16 Jul 2019 10:57:59 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id l5sm7620191otf.53.2019.07.16.10.57.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 10:57:57 -0700 (PDT) Subject: Re: Why no CREATE TEMP MATERIALIZED VIEW ? To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <61406744-6096-47b3-1fcd-329b5cfd26b7@gmail.com> Date: Tue, 16 Jul 2019 12:57:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------326DEDCFB8BB4897EFEB399C" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------326DEDCFB8BB4897EFEB399C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 7/16/19 11:56 AM, David G. Johnston wrote: > On Tue, Jul 16, 2019 at 9:29 AM Ivan Voras > wrote: > > Out of curiosity, since there's CREATE TEMP VIEW, any particular > reason there's no CREATE TEMP MATERIALIZED VIEW? > > Seems like it could be similar to a temp table. > > > Probably a lack (absence) of use cases resulted in people deciding (or > defaulting) to not spend any effort in that area. Incremental maintenance > and refresh seem considerably less useful when only the current session > can see the table. Temp views and temp tables seem to provide sufficient > options in the session lifetime space. How different is a "*temp* materialized view" from a regular view? -- Angular momentum makes the world go 'round. --------------326DEDCFB8BB4897EFEB399C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 7/16/19 11:56 AM, David G. Johnston wrote:
On Tue, Jul 16, 2019 at 9:29 AM Ivan Voras <ivoras@gmail.com> wrote:
Out of curiosity, since there's CREATE TEMP VIEW, any particular reason there's no CREATE TEMP MATERIALIZED VIEW?

Seems like it could be similar to a temp table.

Probably a lack (absence) of use cases resulted in people deciding (or defaulting) to not spend any effort in that area.  Incremental maintenance and refresh seem considerably less useful when only the current session can see the table.  Temp views and temp tables seem to provide sufficient options in the session lifetime space.

How different is a "temp materialized view" from a regular view?


--
Angular momentum makes the world go 'round.
--------------326DEDCFB8BB4897EFEB399C--