Comments (3)
Hi! You are trying to run the Standard SQL syntax, which PostgreSQL does not understand yet (that's the whole point of this extension). You need to call the functions instead, so your test above would be:
CREATE EXTENSION periods CASCADE;
CREATE TABLE example ( id bigint PRIMARY KEY, value text );
SELECT periods.add_system_time_period( 'example', 'row_start', 'row_end' );
SELECT periods.add_system_versioning( 'example' );
from periods.
Thank you very much!
I feel very stupid. I naively thought a PostgreSQL extension could change SQL overall syntax and thought it was a mistake on my side, not being able of installing the extension properly.
Is the purpose of periods to be a proof of concepts or can it be used in production until temporal tables are fully implemented? (I'm new to PosgreSQL as you may have guessed and I'm evaluating this peculiar standard feature).
Thanks again.
from periods.
I am running PG13 64bit on my Windows 10 system, copied all the (sep'20 release, zip file periods-v1.2-pgREL_12_STABLE-windows-x64.zip) periods related dll and sql files to appropriate folders[lib and share/extension], and restarted the Postgresql13 windows service. Then when I am doing the "create extension" step, the below error is thrown...
NOTICE: installing required extension "btree_gist"
ERROR: could not load library "C:/Program Files/PostgreSQL/13/lib/periods.dll": The specified procedure could not be found.
But the file btree_gist.dll is already present in C:\Program Files\PostgreSQL\13\lib path. Suspecting the path env variable as the problem, I added the C:\Program Files\PostgreSQL\13\lib and 13\share to the system env PATH variable, restarted pg13 service and tried again, same error again :-( .
Edit 1 : So, I launched cmd prompt as administrator, and tried the same, results in same error message. What else could be the problem?
Edit 2 : the copied dll files where by default blocked by Windows OS, so from file Explorer, I unblocked them[requires Admin rights], even after this same error.
Thanks in advance.
Edit 3: compiled the periods using msbuild, and copied that dll to 13/lib folder, and all is working fine. Able to create table and have system versioning. This feature is quite useful, hope it becomes part of the main PGsql release.
from periods.
Related Issues (20)
- Indexes not updated HOT 1
- Is this bi-temporal + scd approach correct ? HOT 3
- Capitalised role throws error on add_system_versioning HOT 7
- Usage of "_as_of ()"
- Add support for custom system time
- Support for Range types (e.g. tstzrange?)
- Support system versioning for views HOT 6
- Allow history table to be partitioned
- Crash on PG14 HOT 2
- Can't adjust GRANTs after backup and restore
- How to migrate from temporal_tables?
- QUESTION: How to handle Schema changes?
- pg_dump -n periods cannot dump the tables ? HOT 5
- Why version 1.2 is not visible in my pg14 ? HOT 6
- Foreign key constraints allow inconsistent state?
- Installation error HOT 2
- error when inserting new record HOT 1
- installations instructions
- Remove add_period from a table HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from periods.