Giter VIP home page Giter VIP logo

Comments (3)

xocolatl avatar xocolatl commented on May 25, 2024

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.

jgranduel avatar jgranduel commented on May 25, 2024

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.

anandsowm avatar anandsowm commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.