https://github.com/romgrk/pg_fzy
The fzy function for PostgreSQL
https://github.com/romgrk/pg_fzy
fzy postgres-extension postgresql postgresql-extension
Last synced: 2 months ago
JSON representation
The fzy function for PostgreSQL
- Host: GitHub
- URL: https://github.com/romgrk/pg_fzy
- Owner: romgrk
- Created: 2021-02-25T16:59:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T18:09:29.000Z (over 5 years ago)
- Last Synced: 2025-03-06T08:15:16.435Z (over 1 year ago)
- Topics: fzy, postgres-extension, postgresql, postgresql-extension
- Language: C
- Homepage:
- Size: 158 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pg_fzy
FZY extension for PostgreSQL. You can either use the pre-compiled binaries, or build from source.
### Pre-compiled binaries
Pre-compiled binaries are available for the following systems:
- Linux x86_64, Postgres: 11, 12, 13
- macOS x86_64, Postgres: 13
To make use of it, run:
```
make restore_precompiled_binary
```
### Building
Requires postgresql development headers.
Linux
Install headers through your package manager.
Ubuntu: sudo apt install postgresql-server-dev-XX
macOS
brew: brew install libpq
```
make
```
### Installation
```
sudo make install
```
Requires `pg_config` to be installed.
```
psql> CREATE EXTENSION fzy;
```
### Usage
```
select name, fzy('Stev', "name"::cstring) as score from users;
```
Uses the case-insensitive version of fzy for now. Open an issue if you need
the case sensitive version.
### License
MIT