RE: [temporal-tables] postgres 12

From: CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu>
To: David Piscitelli <piscitelli(dot)david(at)gmail(dot)com>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, "pgsql-fr-generale(at)postgresql(dot)org" <pgsql-fr-generale(at)postgresql(dot)org>
Subject: RE: [temporal-tables] postgres 12
Date: 2022-01-24 18:08:08
Message-ID: PR2P264MB05592699E213935228B30C72F15E9@PR2P264MB0559.FRAP264.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

ok merci pour ce retour
________________________________
De : David Piscitelli <piscitelli(dot)david(at)gmail(dot)com>
Envoyé : lundi 24 janvier 2022 18:25
À : CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu>
Cc : Guillaume Lelarge <guillaume(at)lelarge(dot)info>; pgsql-fr-generale(at)postgresql(dot)org <pgsql-fr-generale(at)postgresql(dot)org>
Objet : Re: [temporal-tables] postgres 12

Non, celle écrite en C d'Arkinov (https://github.com/arkhipov/temporal_tables)
... J'ai quand même des doutes aussi sur les performances d'une extension de ce type en full SQL

Le lun. 24 janv. 2022 à 17:44, CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu<mailto:pierre(dot)crumeyrolle(at)csgroup(dot)eu>> a écrit :
"je vous déconseille de partir sur cette extension" => , vous parlez de celle qui est full pgsql ? si j ai bien compris
________________________________
De : David Piscitelli <piscitelli(dot)david(at)gmail(dot)com<mailto:piscitelli(dot)david(at)gmail(dot)com>>
Envoyé : lundi 24 janvier 2022 17:38
À : CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu<mailto:pierre(dot)crumeyrolle(at)csgroup(dot)eu>>
Cc : Guillaume Lelarge <guillaume(at)lelarge(dot)info<mailto:guillaume(at)lelarge(dot)info>>; pgsql-fr-generale(at)postgresql(dot)org<mailto:pgsql-fr-generale(at)postgresql(dot)org> <pgsql-fr-generale(at)postgresql(dot)org<mailto:pgsql-fr-generale(at)postgresql(dot)org>>
Objet : Re: [temporal-tables] postgres 12

Il n'y a pas beaucoup de choix, c'est vrai mais je vous déconseille de partir sur cette extension. Les performances de cette extension sont assez faibles pour des tables qui sont fortement modifiées (UPDATE/DELETE massif).
Dans le cadre de notre production, elle est utilisée pour faire de l'historique de tables de configuration. Dans ce cas, c'est ok.
On l'avait mis en place pour des tables de travail, puis retiré car cela ralentissait trop les traitements.
Et malheureusement, on ne peut pas attendre d'amélioration...

David

Le lun. 24 janv. 2022 à 17:05, CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu<mailto:pierre(dot)crumeyrolle(at)csgroup(dot)eu>> a écrit :
chercher une autre extension. ? il y a le choix ?
________________________________
De : Guillaume Lelarge <guillaume(at)lelarge(dot)info<mailto:guillaume(at)lelarge(dot)info>>
Envoyé : lundi 24 janvier 2022 16:20
À : David Piscitelli <piscitelli(dot)david(at)gmail(dot)com<mailto:piscitelli(dot)david(at)gmail(dot)com>>
Cc : CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu<mailto:pierre(dot)crumeyrolle(at)csgroup(dot)eu>>; pgsql-fr-generale(at)postgresql(dot)org<mailto:pgsql-fr-generale(at)postgresql(dot)org> <pgsql-fr-generale(at)postgresql(dot)org<mailto:pgsql-fr-generale(at)postgresql(dot)org>>
Objet : Re: [temporal-tables] postgres 12

Bonjour,

Le lun. 24 janv. 2022 à 16:16, David Piscitelli <piscitelli(dot)david(at)gmail(dot)com<mailto:piscitelli(dot)david(at)gmail(dot)com>> a écrit :
Bonjour,

Cette extension n'est plus maintenue par son auteur depuis au moins 4 ans. Cependant, sur le github, il y a eu des mises à jour pour la rendre compatible avec les dernières versions de PG. Il faut faire une installation en compilant le module.

Je rajouterais que la version que vous essayez d'installer, la 1.2.0, date de 2017, donc avant la sortie de la version 12 de PostgreSQL (2019). Pas étonnant qu'elle ne soit pas compatible. Mais en effet, comme dit David, il existe un commit sur le dépôt git pour la compatibilité avec les versions 11, 12 et 13. Ceci dit, pas de version sortie depuis 2017, ça laisse supposer qu'il y a peu de suivi et mieux vaut chercher une autre extension.

David

Le lun. 24 janv. 2022 à 16:01, CRUMEYROLLE Pierre <pierre(dot)crumeyrolle(at)csgroup(dot)eu<mailto:pierre(dot)crumeyrolle(at)csgroup(dot)eu>> a écrit :
Bonjour,
J'essaye d'installer l'extension temporal tables ( https://github.com/arkhipov/temporal_tables
[https://opengraph.githubassets.com/b14fa6ff9beb2126d2bdd0ba5cc8e3c8313a4507415cb5e821bde7a733214985/arkhipov/temporal_tables]<https://github.com/arkhipov/temporal_tables>
arkhipov/temporal_tables: Temporal Tables PostgreSQL Extension - GitHub<https://github.com/arkhipov/temporal_tables>
Temporal Tables Extension. Introduction. A temporal table is a table that records the period of time when a row is valid. There are two types of periods: the application period (also known as valid-time or business-time) and the system period (also known as transaction-time).
github.com<http://github.com>
) avec une instance postgres 12 sous ubunutu 20 ,
L'installation échoue, il semblerait que cette extension ne soit pas compatible avec postgres 12 ?
quelqu' un a-t-il tester cette extension ?
merci
cordialement

# pgxn install temporal_tables
INFO: best version: temporal_tables 1.2.0
INFO: saving /tmp/tmp4ditsaj8/temporal_tables-1.2.0.zip
INFO: unpacking: /tmp/tmp4ditsaj8/temporal_tables-1.2.0.zip
INFO: building extension
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/postgresql/12/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c -o temporal_tables.o temporal_tables.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/postgresql/12/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c -o versioning.o versioning.c
versioning.c: In function ‘versioning’:
versioning.c:249:16: error: incompatible types when assigning to type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} from type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}
249 | period_attr = tupdesc->attrs[period_attnum - 1];
| ^~~~~~~
versioning.c: In function ‘fill_versioning_hash_entry’:
versioning.c:502:10: error: incompatible types when assigning to type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} from type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}
502 | attr = tupdesc->attrs[i];
| ^~~~~~~
versioning.c:514:18: error: incompatible types when assigning to type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} from type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}
514 | history_attr = history_tupdesc->attrs[history_attnum - 1];

--
David Piscitelli
104 La Bellerie
44390 Nort Sur Erdre
Tel: 06-76-72-67-57

--
Guillaume.

--
David Piscitelli
104 La Bellerie
44390 Nort Sur Erdre
Tel: 06-76-72-67-57

--
David Piscitelli
104 La Bellerie
44390 Nort Sur Erdre
Tel: 06-76-72-67-57

In response to

Browse pgsql-fr-generale by date

  From Date Subject
Next Message CRUMEYROLLE Pierre 2022-01-26 10:25:32 [ oracle texte] migration oracle vers postgresql
Previous Message David Piscitelli 2022-01-24 17:25:27 Re: [temporal-tables] postgres 12