Skip to content

Postgres extension for ID generation based on Instagram ID

License

Notifications You must be signed in to change notification settings

wlltmrt/pg-nextid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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