From: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> |
---|---|
To: | px shi <spxlyy123(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: CREATE MATERIALIZED VIEW |
Date: | 2024-07-25 14:09:09 |
Message-ID: | 87a5i5ef7e.fsf@wibble.ilmari.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> writes:
> px shi <spxlyy123(at)gmail(dot)com> writes:
>
>> Hi, I see that materialized view cannot be unlogged now, but when I use
>> psql and type CREATE UNLOGGED, pressing the Tab key for auto-completion
>> suggests `TABLE` and MATERIALIZED VIEW.
>> Shouldn't `MATERIALIZED VIEW ` be suggested?
>
> That's my fault, I added it in commit c951e9042dd1, presumably because
> the grammar allows it, but it turns transformCreateTableAsStmt() rejects
> it.
Scratch that, I misread the diff. The tab completion has been there
since matviews were added in commit 3bf3ab8c5636, but the restriction on
unlogged matviews was added later in commit 3223b25ff73, which failed to
update the tab completion code to match.
Here's a updated patch with a corrected commit message.
- ilmari
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Don-t-tab-complete-MATERIALIZED-VIEW-after-CREATE.patch | text/x-diff | 1.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2024-07-25 14:16:45 | Re: pgsql: Add more SQL/JSON constructor functions |
Previous Message | Alena Rybakina | 2024-07-25 14:04:44 | Re: POC, WIP: OR-clause support for indexes |