pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Model clause and
5+ messages / 3 participants
[nested] [flat]

* Model clause and
@ 2021-10-28 19:57  SQL Padawan <sql_padawan@protonmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: SQL Padawan @ 2021-10-28 19:57 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Good evening everybody.

Are there any plans to emulate Oracle MODEL clause in PostgreSQL?

If not, why not? It doesn't appear to have gained much traction even in the Oracle world?

Also, are there any plans to introduce the MATCH_RECOGNIZE functionality?

I read an interview with Dimitri and he said he'd really like to see this in Postgres?

I presume that VIRTUAL GENERATED columns are on the to-do list?

Just curious.

SQLP

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Model clause and
@ 2021-10-28 20:00  SQL Padawan <sql_padawan@protonmail.com>
  parent: SQL Padawan <sql_padawan@protonmail.com>
  1 sibling, 0 replies; 5+ messages in thread

From: SQL Padawan @ 2021-10-28 20:00 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

That's Dimitri Fontaine - I don't know him personally and didn't mean to be impolite by referring to him by his first name - typo really!

SQLP

Sent with [ProtonMail](https://protonmail.com/) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, October 28th, 2021 at 20:57, SQL Padawan <sql_padawan@protonmail.com> wrote:

> Good evening everybody.
>
> Are there any plans to emulate Oracle MODEL clause in PostgreSQL?
>
> If not, why not? It doesn't appear to have gained much traction even in the Oracle world?
>
> Also, are there any plans to introduce the MATCH_RECOGNIZE functionality?
>
> I read an interview with Dimitri and he said he'd really like to see this in Postgres?
>
> I presume that VIRTUAL GENERATED columns are on the to-do list?
>
> Just curious.
>
> SQLP

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Model clause and
@ 2021-10-28 20:44  Michael Lewis <mlewis@entrata.com>
  parent: SQL Padawan <sql_padawan@protonmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Michael Lewis @ 2021-10-28 20:44 UTC (permalink / raw)
  To: SQL Padawan <sql_padawan@protonmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Thu, Oct 28, 2021 at 1:57 PM SQL Padawan <sql_padawan@protonmail.com>
wrote:

> I presume that VIRTUAL GENERATED columns are on the to-do list?
>

https://www.postgresql.org/docs/current/ddl-generated-columns.html

Is this not what you want?

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Model clause and
@ 2021-10-28 20:47  Thomas Kellerer <shammat@gmx.net>
  parent: Michael Lewis <mlewis@entrata.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Thomas Kellerer @ 2021-10-28 20:47 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Michael Lewis schrieb am 28.10.2021 um 22:44:
> On Thu, Oct 28, 2021 at 1:57 PM SQL Padawan <sql_padawan@protonmail.com <mailto:sql_padawan@protonmail.com>> wrote:
>
>     I presume that VIRTUAL GENERATED columns are on the to-do list?
>
>
> https://www.postgresql.org/docs/current/ddl-generated-columns.html
>
> Is this not what you want?

Those are persisted/stored generated columns. They are only evalated
when a row is inserted or updated.

Virtual generated columns are evaluated each time you access, so they
could use volatile functions.






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Model clause and
@ 2021-10-28 20:56  Michael Lewis <mlewis@entrata.com>
  parent: Thomas Kellerer <shammat@gmx.net>
  0 siblings, 0 replies; 5+ messages in thread

From: Michael Lewis @ 2021-10-28 20:56 UTC (permalink / raw)
  To: Thomas Kellerer <shammat@gmx.net>; +Cc: pgsql-general@lists.postgresql.org

Mea culpa.

"PostgreSQL currently implements only stored generated columns."

I should re-read what I share references to rather than trust my memory,
particularly while sick. Thanks for kindly correcting.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2021-10-28 20:56 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 19:57 Model clause and SQL Padawan <sql_padawan@protonmail.com>
2021-10-28 20:00 ` SQL Padawan <sql_padawan@protonmail.com>
2021-10-28 20:44 ` Michael Lewis <mlewis@entrata.com>
2021-10-28 20:47   ` Thomas Kellerer <shammat@gmx.net>
2021-10-28 20:56     ` Michael Lewis <mlewis@entrata.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox