PostgreSQL

target-postgres (meltano variant)🥈

PostgreSQL database loader

The target-postgres loader

This plugin is deprecated and not recommended for use. Please use another variant.

sends data into PostgreSQL after it was pulled from a source using an extractor

Alternate Implementations

Getting Started

Prerequisites

If you haven't already, follow the initial steps of the Getting Started guide:

  1. Install Meltano
  2. Create your Meltano project

Installation and configuration

  1. Add the target-postgres loader to your project using
    meltano add
    :
  2. meltano add loader target-postgres --variant meltano
  3. Configure the target-postgres settings using
    meltano config
    :
  4. meltano config target-postgres set --interactive

Next steps

If you run into any issues, learn how to get help.

Capabilities

This plugin currently has no capabilities defined. If you know the capabilities required by this plugin, please contribute!

Settings

The target-postgres settings that are known to Meltano are documented below. To quickly find the setting you're looking for, click on any setting name from the list:

You can also list these settings using

meltano config
with the list subcommand:

meltano config target-postgres list

You can override these settings or specify additional ones in your meltano.yml by adding the settings key.

Please consider adding any settings you have defined locally to this definition on MeltanoHub by making a pull request to the YAML file that defines the settings for this plugin.

User (user)

  • Environment variable: TARGET_POSTGRES_USER
  • Default Value: warehouse
[No description provided.]

Configure this setting directly using the following Meltano command:

meltano config target-postgres set user [value]

Password (password)

  • Environment variable: TARGET_POSTGRES_PASSWORD
  • Default Value: warehouse
[No description provided.]

Configure this setting directly using the following Meltano command:

meltano config target-postgres set password [value]

Host (host)

  • Environment variable: TARGET_POSTGRES_HOST
  • Default Value: localhost
[No description provided.]

Configure this setting directly using the following Meltano command:

meltano config target-postgres set host [value]

Port (port)

  • Environment variable: TARGET_POSTGRES_PORT
  • Default Value: 5502
[No description provided.]

Configure this setting directly using the following Meltano command:

meltano config target-postgres set port [value]

Database Name (dbname)

  • Environment variable: TARGET_POSTGRES_DBNAME
  • Default Value: warehouse
[No description provided.]

Configure this setting directly using the following Meltano command:

meltano config target-postgres set dbname [value]

URL (url)

  • Environment variable: TARGET_POSTGRES_URL

Lets you set user, password, host, port, and dbname in one go using a postgresql:// URI.

Takes precedence over the other settings when set.


Configure this setting directly using the following Meltano command:

meltano config target-postgres set url [value]

Schema (schema)

  • Environment variable: TARGET_POSTGRES_SCHEMA
  • Default Value: $MELTANO_EXTRACT__LOAD_SCHEMA

Note that $MELTANO_EXTRACT__LOAD_SCHEMA will expand to the value of the load_schema extra for the extractor used in the pipeline, which defaults to the extractor's namespace, e.g. tap_gitlab for tap-gitlab.

Name of the schema where the tables will be created. If schema_mapping is not defined then every stream sent by the tap is loaded into this schema.


Configure this setting directly using the following Meltano command:

meltano config target-postgres set schema [value]

Troubleshooting

ld, clang, lssl, or linker Errors

If you have an error message like:

  • ld: library not found for -lssl
  • clang: error: linker command failed with exit code 1
  • error: command 'clang' failed with exit status 1

These error messages indicates that there is a problem installing OpenSSL.

This Stack Overflow answer has specific recommendations on setting the LDFLAGS and/or CPPFLAGS environment variables. Set those prior to running meltano add loader target-postgres.

Something missing?

This page is generated from a YAML file that you can contribute changes to.

Edit it on GitHub!

Looking for help?

If you're having trouble getting the target-postgres loader to work, look for an existing issue in its repository, file a new issue, or join the Meltano Slack community and ask for help in the
#plugins-general
channel.

Install

meltano add loader target-postgres --variant meltano

Maintenance Status

  • Maintenance Status

Repo

https://github.com/meltano/target-postgres
  • Stars
  • Forks
  • Last Commit Date
  • Open Issues
  • Open PRs
  • Contributors
  • License

Maintainer

  • Meltano

Meltano Stats

  • Total Executions (Last 3 Months)
  • Projects (Last 3 Months)

Keywords

  • database