Category "postgresql"

R's ceiling_date equivalent in SQL

I want to implement R's ceiling_date fucntion in SQL (Postgresql). So I have dates in a column for everyday with corresponding sales and I want to accumulate th

How can get html inner tag in PosgreSQL

I have some data like that. And I want to get html. with t(x) as (values( XMLPARSE(DOCUMENT ('<root><NotificationServiceDetails NotificationNo="0" Alar

mapping excel columns to table column in database with python

json file "mappingdef": [ { "src": "A", "dest": "id" }, {

How can I connect twice to db in Cypress tests?

I need to connect to my db (Postgres) twice during autotest - at the beginning to truncate and at the end to select a new note from the table. I tried to do it

SQL tuple/lexicographic comparison with multiple directions

I need to return elements from a database query based on an inequality using the lexicographic ordering on multiple columns. As described in this question this

minus one error when trying to connect to database with Oracle SQL Developer

I'm trying to connect to a Postgres DB using Oracle SQL Developer. This is the datasource URL I see in an application which uses the DB: jdbc:postgresql://10.11

Heroku H10 error when deploying Flask application with Psycopg2

Runs locally, but not when deployed to Heroku (see error message). I tried adding a runtime.txt file with the Python version, and tried most of suggestions to s

Is this INSERT statement containing SELECT subquery safe for multiple concurrent writes?

In Postgres, suppose I have the following table to be used like to a singly linked list, where each row has a reference to the previous row.

How to find out count month vise in particular day range sql?

Like date count users 2 jan - 7 feb 2 feb - 7 march

Very basic question: Is my postgres password set correctly? When are we using postgres passwords?

[LuisMontanoMichel@Luis-MacBook-Pro~% psql psql (14.2) Type "help" for help. [LuisMontanoMichel=# ALTER ROLE "LuisMontanoMichel" WITH PASSWORD 'examplepass'

Can we pass 3 url to backend(asp.net core, 1 master, 2 slave) appsettins.json have 1 connectionstring yandex cloud? postgresSql master-slave

We have datacenter in 3 zone and 3 different url. Connect to database postgres is psql "hostname=url1,url2,url3 \port=......" Yandex understand what is master n

xpath extract field name and "column" name from jdo mapping

First time dealing with xpath and XML data. I have below xpath query that I got through some Stack Overflow answers. Below, I want to extract all the column nam

Case insensitive collation still uses case sensitive comparison

According to the postgress documentation a collation can be created to ignore cases during comparison operations. CREATE COLLATION IF NOT EXISTS case_insensitiv

Where is query pipelining in libpq?

I'm developing a high load server application using C++ and libpq (libpqxx is very unstable). I use async queries in threads to improve performance. But I've di

RepositoryNotFoundError: No repository for "User" was found. Looks like this entity is not registered in current "default" connection? Typeorm

I am having a fun issue trying to get TypeOrm to work in my nestjs project. I have the below code to configure my project, yes everything loads, and yes I am ab

Using 'on conflict' with a unique constraint on a table partitioned by date

Given the following table: CREATE TABLE event_partitioned ( customer_id varchar(50) NOT NULL, user_id varchar(50) NOT NULL, event_id varchar(50) NOT

Using 'on conflict' with a unique constraint on a table partitioned by date

Given the following table: CREATE TABLE event_partitioned ( customer_id varchar(50) NOT NULL, user_id varchar(50) NOT NULL, event_id varchar(50) NOT

need the dv/dt for the below table

How to get the dv/dt of the below table in psql Concept is linear regression - but to determine the slope is the what I am facing issue with. voltage || time

Constant failure to import csv file via copy command in postgrsql

I have a file in my TEMP directory on a windows server echo %TEMP% C:\Users\BOB\AppData\Local\Temp\2 Below command to insert file to table: psql -d BOBDB01 -c

updable view can update the base table, but cannot update view column

BEGIN; SET search_path TO test; CREATE USER regress_view_user1; CREATE USER regress_view_user2; GRANT CREATE, usage ON SCHEMA test TO regress_view_user1; GRANT