Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 902 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 902 Bytes

NextID Postgres Extension

Build Status Version Software License

Postgres Extension for ID generation based on Instagram ID. check out the post: instagram-engineering.com.

Requirements

Postgres Server and Dev tools.

Installation

Use the C++ make to install extension direct in Postgres.

make install
make clean

Usage

Create extension in your database:

CREATE EXTENSION nextid;

Generate ID with extension:

SELECT c_next_id(NEXTVAL('id_seq'), 1) FROM generate_series(1, 100);

License

MIT