Category "postgresql"

EMR - Airflow to run scala jar file airflow.exceptions.AirflowException

I am trying to run a scala jar file from AIRFLOW using emr and the jar file is designed to read mssql-jdbc and postgresql. From airflow, I'm able to create clus

Cron access to PostgreSQL in Docker

I've created a PostgreSQL instance via Docker and I can create tables and insert data etc fine. The issue is when I use crontab to do this. I'm using a Python s

Node-Postgres Error: timeout exceeded when trying to connect

We have a production deployed Node js application which services a good amount of traffic throught the day. The application is in loopback and connects to postg

Cannot create Table in graph schema , Agensgraph

I am trying to import Northwind dateset as mentioned in this tutorial 'https://bitnine.net/tutorial/tutorial_eng.html?ckattempt=1', I did the same process but w

How to select distinct on "name" using Sequelize?

I need to translate the postgresql query below select distinct on (name) * from users To seqelize query / condition . Currently I am just selecting all users f

configuring Airflow ssh connection in google cloud composer

I'm trying to configure a SSH connection from Airflow UI on google cloud composer environment to an on premise posgresql server Where I should store my private

NodeJS Cannot Connect to Postgres at Dockerized Environment

I am trying to run a NodeJS application on Docker. However I get that error: could not connect to postgres: Error: connect ECONNREFUSED When I debug the proble

ST_MakeEmptyRaster makes in geovalue worth 10000 and such when I want normal geodata

I have here made a demo of my attempt turn points on a map with values then use St_interpolateraster and than send it back as geojson. It returns values and the

How to use sql NOT operator in sqlalchemy

I have a simple table with an int[] column and I would like to be able to select rows that do not contain a specified user. And I can't figure out how to do it

InvalidCursorName : Django Admin error referencing wrong column in ForeignKey

I've setup a relationship using django's ForeignKey against 2 unmanaged tables like so: class Product(BaseModel): publish_name = models.CharField(unique=Tru

Fill nulls with lag, but ignore nulls isn't supported

I have a table which looks like this: ID money_earned days_since_start 1 1000 1 1 2000 2 1 null 3 1 3000 4 1 2000 5 2 1000 1 2 null 2 2 100 3 I want that rows

TypeORM Deferrable Primary Key with Postgres

I am using TypeORM with Postgres. I see against RelationOptions it is possible to set the FK to deferrable, is there any option to set the same against the prim

AWS Aurora: bulk upsert of records using pre-formed SQL Statements

Is there a way of doing a batch insert/update of records into AWS Aurora using "pre-formed" Postgresql statements, using Python? My scenario: I have an AWS lamb

Error while triggering quartz job in spring boot, kubernetes

I'm using Quartz Scheduler in Spring Boot with Postgres as Database. It was working fine in local enivornment with both dev and prod profile, but once we deploy

Cannot Automate Dropping of Tables via Jupyter with Postgres

So I am trying to automate the dropping of TABLES in my Postgresql table I ensure the connections are working, I have done multiple queries previously, Now I wa

How do I delete images that are not used in the database?

I have written scripts that check images in a directory and in a database. I need to delete images in a directory that are not in the database. How can I do thi

Imperatively map both entity and value object inside that entity to one table

Let's say I have an entity which is mapped to a postgresql table in sqlalchemy. @dataclass class User: id: int email: str password: str country:

Recursive query to produce edges of a path?

I have a table paths: CREATE TABLE paths ( id_travel INT, point INT, visited INT ); Sample rows: id_travel | point | visited -----------+-------+

ER diagram to Postgres SQL

n real, ProductID integer , PRIMARY KEY () )

Problem in serverless function (serverless framework) when using sequelize orm to make requests to the database

I’m trying to set up a simple serverless environment using serverless framework, there is only one lambda function that makes a call to the database using