sraoss / pg_ivm

IVM (Incremental View Maintenance) implementation as a PostgreSQL extension
Other
862 stars 24 forks source link

Can not build with PostgreSQL 13 #9

Closed yugo-n closed 2 years ago

yugo-n commented 2 years ago
$ make
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -fPIC -I. -I./ -I/usr/local/src/pgsql/current-13/include/server -I/usr/local/src/pgsql/current-13/include/internal  -D_GNU_SOURCE   -c -o pg_ivm.o pg_ivm.c
pg_ivm.c: In function 'create_immv':
pg_ivm.c:188:8: error: 'CreateTableAsStmt' {aka 'struct CreateTableAsStmt'} has no member named 'objtype'; did you mean 'type'?
  188 |  ctas->objtype = OBJECT_MATVIEW;
      |        ^~~~~~~
      |        type
Bessonov commented 2 years ago

Please, don't spend your time on compatibility with older versions and spend your time on this great feature instead. PG14 was released ~8 month ago. If there is a need for older versions, then let the community to contribute.

MichaelDBA commented 2 years ago

I totally disagree with @Bessonov ! Thanks for your efforts to make it compatible with non-EOL versions of Postgres.

Bessonov commented 2 years ago

@MichaelDBA

I totally disagree with @Bessonov !

Because...

Did you ask PG team to backport PG14 features to PG13 just because you need them? No? TBH, I can't understand people like you. Why do you want hold down the development? Does oracle pay you? I'm more interested that this feature get done (eg. https://github.com/sraoss/pg_ivm/issues/4 ) instead of spending time for outdated versions.

I'm on PG13 too, but it's totally reasonable updating the database to get new features. And if the team decides ship it in PG15, because they can use new functions from PG15 and spend less time on development, I would strongly agree with this decision. I value the time of developers and I care very much about it.

Anyway, there is a PR for that now. But the time spend on this isn't available for development of this feature anymore and will slow down the development further.

yugo-n commented 2 years ago

Actually, we would not like to support too old versions as Bessonov said, but, on the other hand, we think we also would like many pepole to use pg_ivm and give us feedback. So, we decided to support PG13 since we've recognized that it is easy thanks to the PR, and I've already merged it. pg_ivm is supported from feedback from you all. Thank!