{"id":16430192,"url":"https://github.com/its-alex/postgres-fdw-example","last_synced_at":"2025-02-25T08:18:42.412Z","repository":{"id":97418120,"uuid":"157404921","full_name":"Its-Alex/postgres-fdw-example","owner":"Its-Alex","description":"Example of postgres_fdw plugins with docker","archived":false,"fork":false,"pushed_at":"2018-11-13T15:57:35.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T11:12:29.717Z","etag":null,"topics":["docker","example","postgres","postgres-fdw"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Its-Alex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-11-13T15:46:03.000Z","updated_at":"2022-04-26T23:08:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7f52be5-287c-4aaf-97ad-bfa658d6abf1","html_url":"https://github.com/Its-Alex/postgres-fdw-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fpostgres-fdw-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fpostgres-fdw-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fpostgres-fdw-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fpostgres-fdw-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Its-Alex","download_url":"https://codeload.github.com/Its-Alex/postgres-fdw-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240627987,"owners_count":19831602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","example","postgres","postgres-fdw"],"created_at":"2024-10-11T08:26:01.029Z","updated_at":"2025-02-25T08:18:42.366Z","avatar_url":"https://github.com/Its-Alex.png","language":"Dockerfile","readme":"# Postgres_fdw example\n\nExample of postgres_fdw plugins with docker\n\n## Demo\n\nYou can start all databases\n\n```\n$ make up\n```\n\nand stop\n\n```\n$ make down\n```\n\nThere are 3 databases with on master `postgres-1` and two slaves. Just one main\ntable `temperatures`, with partitionning on `at`.\n\nEach temperatures in 2016 will be stored in postgres-2 and all temperatures in\n2017 will be stored in postgres-3.\n\n```\n$ make enter-master\npoc-sharding=# INSERT INTO temperatures (at, city, mintemp, maxtemp) VALUES ('2016-08-03', 'London', 63, 73);\nINSERT 0 1\npoc-sharding=# select * from temperatures;\n     at     |  city  | mintemp | maxtemp\n------------+--------+---------+---------\n 2016-08-03 | London |      63 |      73\n(1 row)\n\npoc-sharding=# select * from temperatures_2016;\n     at     |  city  | mintemp | maxtemp\n------------+--------+---------+---------\n 2016-08-03 | London |      63 |      73\n(1 row)\npoc-sharding=# select * from temperatures_2017;\n     at     |  city  | mintemp | maxtemp\n------------+--------+---------+---------\n(0 row)\n```\n\n## Configuration\n\nAll postgres setup all in migrations and are sorted by containers names. You can\nupdate some setup by editing files inside this folder.\n\n## License\n\n[MIT](https://en.wikipedia.org/wiki/MIT_License)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Fpostgres-fdw-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fits-alex%2Fpostgres-fdw-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Fpostgres-fdw-example/lists"}