Category "postgresql"

Postgresql offset optimization in partitions

I created a table: create table test (id serial, name varchar(20), rownumber serial) partition by range (id); then I created index create index "test_rownumber

PLPGSQL function returns ERROR: integer out of range even if value is correct

I'm experiencing strange behaviour on two Postgres functions returning a single bigint value. The first one returns the correct value while the second one throw

Sorting and Filter Over PII Data

I have a large set of User PII data, currently, we are storing on Relational Data encrypted with AWS KMS. Now I have to paginate data based on UserName. The onl

GAE Connection to SQL: password authentication failed for user 'postgres'

nodejs app on GAE flex deploys correctly, but won't connect to postgres, even though initial knex migration worked and the tables were created. Ive read through

No data in the changelog topic for a KSQL table

Step 1. Postgres CDC Data I have a Postgres table which has been set up to use Debezium PostgreSQL Connector to generate CDC. In Kafka, I can see the CDC data i

Decoupling Win authentification, ODCB driver authentification and SQL authentification - ODCB auth error and DLookup error

I'm trying to connect a user to my company's postgreSQL Server to access a postgres database via MS Access 2019. Connection should be established via ODCB drive

Postgresql update 200 random records

I've got a query returning 200 random distinct foo from my Database. I want to update the notes field for those rows. select distinct on (foo, random()) * from

Are indexes built CONCURRENTLY different in any way?

Does PostgreSQL CREATE INDEX CONCURRENTLY mean that even after initial index build, new and future inserts won't be indexed immediately (strongly consistent in

How to assign an instance to a variable - .find() / .where() - and access it's values - RUBY on RAILS

account = Account.find(params[:account_id]) account_to_receive = Account.where(number_account: transaction.account_to_transfer) So I am building a bank app I wo

Fixing django inspectdb after importing postgresql sample database

Context: I'm playing around with setting up a DRF project using the postgresql sample database located here: Postresql Sample DB Problem: The sample database is

How does Postgresql inside Docker work? psql: FATAL: password authentication failed for user xy

I created my app with .yml services: db: image: postgres:11-alpine environment: POSTGRES_DB: wiki POSTGRES_PASSWORD: quantoxrocks P

ERROR: invalid byte sequence for encoding WITH psql

I've seen numerous issues in other posts with the copy command and: ERROR: invalid byte sequence for encoding "UTF8": 0xfc And the consensus in these posts ap

How can I solve the issue: psql cannot connect to the server in Ubuntu?

In hosting my Django web application on VPS using PostgreSQl. However, the configuration seems to be fine but whenever I want to access the Postgres Shell, I ma

What is the equivalent to Postgres's @@ to_tsquery(:searchQuery) in ElasticSearch?

We've migrated from a postgres database that was using vectors and using @@ to_tsquery(:searchQuery) to perform queries. We are now using ElasticSearch and havi

Whats missing on my Ruby 'Inverse Of' relationship

I know this topic has been addressed, but I have been at this for 2 days and I'm just stuck. I know inverse of does not create a new query, so should I use anot

is it possible to insert a gzipped string (Json string) as a varchar in postgres

Will I run into any weird byte sequence if I attempt to store a binary (a gzipped Json string) in a varchar column. Or Should I base64 encode it after compressi

Presenting summary information with splitting the value of a column

Is there a way to bring up the following with the table below: customer_id | loan_date | loan_amount | loan_paid | status ------------+------------+-----------

TimescaleDB high disk space usage despite compression activated

I have a TimescaleDB database running on Docker (which is running on Ubuntu). As you can guess, I store a lot of time-series data in it and to save disk space I

looping throught each row till the end of a 2d array of integer in postgresql

so basically I got a 2d array in a table. table SQL CREATE TABLE IF NOT EXISTS public.table_name ( "Person_Id" numeric(24,0) NOT NULL, "Items" integer[], ); so

How do I set up a postgres connection on airflow for the postgres operator

For the rtfm crowd, let me document my suffering. I went here: https://betterdatascience.com/apache-airflow-postgres-database/ But my ui has UNAUTHORIZED in pin