The set of adapter protocols and base functionality that supports integration with dbt-core
Project description
dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis.
dbt-postgres
The dbt-postgres
package contains all of the code enabling dbt to work with a Postgres database. For
more information on using dbt with Postgres, consult the docs.
Getting started
- Install dbt
- Read the introduction and viewpoint
psycopg2-binary
vs. psycopg2
By default, dbt-postgres
installs psycopg2-binary
. This is great for development, and even testing, as it does not require any OS dependencies; it's a pre-built wheel. However, building psycopg2
from source will grant performance improvements that are desired in a production environment. In order to install psycopg2
, use the following steps:
if [[ $(pip show psycopg2-binary) ]]; then
PSYCOPG2_VERSION=$(pip show psycopg2-binary | grep Version | cut -d " " -f 2)
pip uninstall -y psycopg2-binary
pip install psycopg2==$PSYCOPG2_VERSION
fi
This ensures the version of psycopg2
will match that of psycopg2-binary
.
Contribute
See CONTRIBUTING.md
for a detailed overview of contributing a code change to this adapter.
Join the dbt Community
- Be part of the conversation in the dbt Community Slack
- Read more on the dbt Community Discourse
Reporting bugs and contributing code
- Want to report a bug or request a feature? Let us know on Slack, or open an issue
- Want to help us build dbt? Check out the Contributing Guide
Code of Conduct
Everyone interacting in the dbt project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the dbt Code of Conduct.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dbt_postgres-1.9.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9ad7c37bbf34fc7bfedf79bd1581b5746d66eb3855d137d921ebb6525838f88 |
|
MD5 | 23d8bf18467fb40d41a1eeb8c2e9b4c9 |
|
BLAKE2b-256 | b892abb8c494f78220103681ba17d3cf888f274db1039ec2d9ea3fc37ef698ba |