{"id":18928188,"url":"https://github.com/hearthsim/docker-pgredshift","last_synced_at":"2025-07-08T08:04:52.803Z","repository":{"id":44896655,"uuid":"139017488","full_name":"HearthSim/docker-pgredshift","owner":"HearthSim","description":"Redshift docker image based on postgres","archived":false,"fork":false,"pushed_at":"2025-05-27T17:19:30.000Z","size":22,"stargazers_count":66,"open_issues_count":6,"forks_count":11,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-27T18:29:38.129Z","etag":null,"topics":["docker","localstack","postgres","redshift"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repository/docker/hearthsim/pgredshift","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/HearthSim.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,"zenodo":null}},"created_at":"2018-06-28T12:49:27.000Z","updated_at":"2025-05-17T23:18:16.000Z","dependencies_parsed_at":"2025-07-08T08:03:28.772Z","dependency_job_id":null,"html_url":"https://github.com/HearthSim/docker-pgredshift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HearthSim/docker-pgredshift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdocker-pgredshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdocker-pgredshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdocker-pgredshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdocker-pgredshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HearthSim","download_url":"https://codeload.github.com/HearthSim/docker-pgredshift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdocker-pgredshift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264229252,"owners_count":23576239,"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","localstack","postgres","redshift"],"created_at":"2024-11-08T11:23:28.580Z","updated_at":"2025-07-08T08:04:52.748Z","avatar_url":"https://github.com/HearthSim.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-pgredshift\n\nA docker image based on Debian with PostgreSQL which simulates an\n[AWS Redshift](https://aws.amazon.com/redshift/) instance.\n\n\n## Why?\n\nAmazon Redshift is close enough to, and compatible enough with Postgres that you\ncan use a lot of Postgres tooling and queries with it transparently. But some of\nits features, or slight differences with Postgres, may be harder to work around.\n\nAmazon does not make a local instance of Redshift available, nor is the project\nopen source. This is especially annoying if you are writing tests against code\nwhich has to run queries with Redshift-specific syntax in them. Postgres will\nnormally reject them unless you mock the features in some way.\n\nThat's what this project is. It's not meant to run in production, but it is meant\nto help mock Redshift's features for testing purposes.\n\n**PLEASE NOTE**: As of July 2018, very little is implemented. PRs welcome.\n\n\n## Key differences\n\nThe ultimate goal of pgredshift is to be as close as possible to the real Redshift\nin terms of feature parity. However, some key differences will remain:\n\n- [Redshift is based on Postgres 8.0.2](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html),\n  whereas pgredshift is based on Postgres 10 or newer.\n- pgredshift will enforce various forms of data integrity (such as Foreign Key\n  constraints) which Redshift [does not enforce](https://docs.aws.amazon.com/redshift/latest/dg/c_best-practices-defining-constraints.html).\n- Some core changes Redshift made to Postgres may not be replicatable in Postgres.\n- Do not expect performance and underlying data storage efficiency to ever be replicated.\n\n\n## Features\n\nThe pgredshift image is build on top of Debian \"Buster\".\n\n### plpythonu\n\nThe image is built with `plpythonu` (Python 2.7) language support.\nMore information:\n\u003chttps://docs.aws.amazon.com/redshift/latest/dg/udf-python-language-support.html\u003e\n\nThe following packages are installed:\n\n- NumPy 1.8.2\n- Pandas 0.18.1 (up from 0.14.1 on Redshift)\n- python-dateutil 2.2\n- PyTZ 2015.7\n- SciPy 0.12.1\n- six 1.3.0\n- wsgiref 0.1.2\n- enum34 1.1.6 (Not available on Redshift)\n- psycopg2 2.7.5 (Not available on Redshift)\n\nThe image also includes pip, setuptools and wheel for Python 2.7.\n\n### plpython3u\n\nThe image is built with `plpython3u` (Python 3.6) language support.\nAlthough Redshift does not support Python 3, you may use this to help ensure\ncompatibility of UDFs across Python 2 and 3.\n\nThe image includes pip, setuptools and wheel for Python 3.6.\n\n\n### Postgres extensions\n\n#### `SET query_group`\n\nThe `query_group` extension adds support for the `SET query_group to ...` command.\nPostgres does not allow setting unknown variables, so including that extension\nprevents an error when issuing the command.\nNote that the value is ignored as query groups themselves are not implemented.\n\nReference: \u003chttps://docs.aws.amazon.com/redshift/latest/dg/r_query_group.html\u003e\n\n\n### Additional tables\n\nRedshift system tables are implemented in `00_stl_tables.sql` and `00_stv_tables.sql`.\nExpect them to be empty, or include garbage data, but SELECTs won't necessarily fail.\n\n\n### Additional functions\n\nAdditional functions are implemented as Python or SQL UDFs.\nFor a list, see `sql/01_functions.sql`.\n\n\n## License\n\nThis project is dual-licensed under the MIT license and the PostgreSQL license.\nYou may choose whichever license suits your purpose best.\nThe full license texts are available in the `LICENSE` (MIT) and `LICENSE.PostgreSQL`\n(PostgreSQL License) files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearthsim%2Fdocker-pgredshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhearthsim%2Fdocker-pgredshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearthsim%2Fdocker-pgredshift/lists"}