Skip to content

Instantly share code, notes, and snippets.

View ranjanprj's full-sized avatar

ranjanprj ranjanprj

  • Pune
View GitHub Profile
@ranjanprj
ranjanprj / gist:952254072c69acb092bc01260e7b73dd
Last active June 16, 2021 18:24
Creating a very simple PostgreSQL Extension in C
sudo apt-get update
sudo apt install postgresql-server-dev-12
C File
=========
#include "postgres.h"
#include <string.h>
#include "fmgr.h"
@ranjanprj
ranjanprj / Dockerfile
Created May 31, 2024 17:43 — forked from ItsWendell/Dockerfile
Postgres Dockerfile with Custom Extensions using pgxn
## Alternatives: postgres:15-alpine
ARG BASE_IMAGE=postgis/postgis:15-3.4-alpine
## Custom Alpine Postgres docker file with custom extensions
FROM ${BASE_IMAGE} as builder
# Install required dependencies
RUN apk --no-cache add \
python3 \