{"id":23293401,"url":"https://github.com/kiritaniayaka/pg_jieba","last_synced_at":"2026-01-18T02:02:43.150Z","repository":{"id":241540955,"uuid":"805812954","full_name":"KiritaniAyaka/pg_jieba","owner":"KiritaniAyaka","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-08T02:17:01.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T18:51:04.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KiritaniAyaka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-25T14:30:28.000Z","updated_at":"2024-10-08T02:17:05.000Z","dependencies_parsed_at":"2024-05-29T01:05:12.872Z","dependency_job_id":"20dafb19-e69e-485a-9863-03d71292c93b","html_url":"https://github.com/KiritaniAyaka/pg_jieba","commit_stats":null,"previous_names":["kiritaniayaka/pg_jieba"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KiritaniAyaka/pg_jieba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiritaniAyaka%2Fpg_jieba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiritaniAyaka%2Fpg_jieba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiritaniAyaka%2Fpg_jieba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiritaniAyaka%2Fpg_jieba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KiritaniAyaka","download_url":"https://codeload.github.com/KiritaniAyaka/pg_jieba/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiritaniAyaka%2Fpg_jieba/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T06:15:46.793Z","updated_at":"2026-01-18T02:02:43.136Z","avatar_url":"https://github.com/KiritaniAyaka.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg_jieba\n\n\u003ccenter\u003e\n\nEnglish | [简体中文](./README.zh.md)\n\n![Visitors](https://count.ayk.moe/KiritaniAyaka/pg_jieba)\n![Docker Pulls](https://img.shields.io/docker/pulls/kiritaniayaka/pg_jieba)\n![Docker Image Size (tag)](https://img.shields.io/docker/image-size/kiritaniayaka/pg_jieba/latest?logo=Docker\u0026label=Image%20Size)\n![Docker Image Size (tag)](https://img.shields.io/docker/image-size/kiritaniayaka/pg_jieba/alpine?logo=Docker\u0026label=Image%20Size%20(Alpine))\n\nPostgreSQL Docker image for jieba preinstalled.\n\n\u003c/center\u003e\n\n## Usage\n\n\u003e [!NOTE]\n\u003e The configuration path of PostgreSQL is `/usr/shared/postgresql` on bullseye(alse `latest`), but `/usr/local/shared/postgresql` on Alpine. All the following examples are on bullseye, be cautious if you are using Alpine variant.\n\n```sh\ndocker run --name postgres_jieba \\\n  --restart always \\\n  -p 5432:5432 \\\n  -e POSTGRES_PASSWORD=your_password \\\n  -v ./data:/var/lib/postgresql/data \\\n  kiritaniayaka/pg_jieba:latest\n```\n\nTo enable `jieba`, run `CREATE EXTENSION pg_jieba;` in the database you want.\n\n## Database Configuration\n\nThis image is automated add jieba to shared_preload_libraries in a customed configuration file: `/etc/postgresql/postgresql.conf`. You can modify this file to change configuration as you need.\n\nIf you need to use another configuration file, note that the jieba is not added to shared_preload_libraries at first.\n\n### Sample config file\n\nUse the following command to export a configuration file sample:\n\n```sh\ndocker run -i --rm kiritaniayaka/pg_jieba cat /usr/share/postgresql/postgresql.conf.sample \u003e postgresql.conf\n```\n\n### Use a custom config file\n\n```sh\ndocker run --name postgres_jieba \\\n  --restart always \\\n  -p 5432:5432 \\\n  -e POSTGRES_PASSWORD=your_password \\\n  -v ./data:/var/lib/postgresql/data \\\n  -v ./config/postgresql.conf:/etc/postgresql/postgresql.conf \\ # mount a configuration file\n  kiritaniayaka/pg_jieba:latest \\\n  postgres -c 'config_file=/etc/postgresql/postgresql.conf' # using a custom configuration file\n```\n\nThis repository provided a script to help you export sample configuration file and add pg_jieba to preload libraries. Just run `./setup-config.sh`. (For Alpine: `USE_ALPINE=1 ./setup-config.sh`) \n\n## User Dictionary\n\nMount a user dictionary to container:\n\n```sh\ndocker run --name postgres_jieba \\\n  --restart always \\\n  -p 5432:5432 \\\n  -e POSTGRES_PASSWORD=your_password \\\n  -v ./data:/var/lib/postgresql/data \\\n  -v ./config/jieba_user.dict:/usr/share/postgresql/tsearch_data/jieba_user.dict \\ # mount user dictionary\n  kiritaniayaka/pg_jieba:latest\n```\n\nMore information about user dictionary, see [jaiminpan/pg_jieba](https://github.com/jaiminpan/pg_jieba).\n\n## Acknowledgements\n\n- [jaiminpan/pg_jieba](https://github.com/jaiminpan/pg_jieba) - The extension used by this project.\n- [XYenon/postgres_jieba](https://github.com/XYenon/postgres_jieba) - The project referenced by this project. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiritaniayaka%2Fpg_jieba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiritaniayaka%2Fpg_jieba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiritaniayaka%2Fpg_jieba/lists"}