Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

I have two tables. table 1 Column A Column B rgz 1 dry 1 vgy 2 chy 3 pom 2 table 2 Column C Column D tuv 10 tuv 11 chx 22 lmn 34 I want the following result shown on data output of postgres PgAdmin ...
G Nisan's user avatar
-2 votes
2 answers
53 views

In PostgreSQL, I have a table with some settings the user can make. In that table there is also a "global" user that takes place if the user doesn't have any settings for them. This query ...
Bruno Kinast's user avatar
  • 1,208
1 vote
1 answer
2k views

I'm dealing with an older PostgreSQL database running on version 9.2.15. I aim to upgrade it to the latest version 16.1 without losing data if possible. Should I perform incremental updates to major ...
Henri's user avatar
  • 11
0 votes
0 answers
52 views

Hello good people of stackoverflow! I need help with writing a query, to identify online time grouped by users, and also to identify which are the periods where there were 0 users online and for how ...
jazzchng's user avatar
1 vote
1 answer
356 views

Specs: PostgreSQL 9.2.18 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11), 64-bit I'm on MacOS 13.2.1, using DBeaver IDE (version 23.0.4.202305071722) to connect to ...
Noah Petrasko's user avatar
7 votes
0 answers
8k views

I upgraded my local Postgresql test server to PostgreSQL15 today morning. Opening pgAdmin gave me a warning that some of the features may not work correctly because I have a server with version 9 ...
Maya's user avatar
  • 183
0 votes
1 answer
238 views

I am not able to query the contents of the Notification_log table. The table is in a Postgres 9.2 instance that stores my hive metadata. hive=# SELECT table_catalog, table_schema, table_name FROM ...
Aso'K's user avatar
  • 57
0 votes
1 answer
360 views

I have a table called device_info that looks like below (only a sample provided) device_ip cpu memory 100.33.1.0 10.0 29.33 110.35.58.2 3.0, 2.0 20.47 220.17.58.3 4.0, 3.0 23.17 30.13.18.8 -1 26.47 70....
Souvik Ray's user avatar
  • 3,056
1 vote
2 answers
183 views

I have a Postgres table that looks like below ip | up_score -----------------+------------------- 223.110.181.122 | 1 242.123.249.85 | 0 10....
Souvik Ray's user avatar
  • 3,056
1 vote
0 answers
138 views

i don't know how to call function with output REFCURSOR in golang My function create function find_all_by_user_id(OUT rc_out refcursor, p_user_id bigint) returns refcursor language plpgsql as $$ ...
htan's user avatar
  • 79
0 votes
0 answers
23 views

Select text, Instr(text,’.’,1,4) as pos_4dot, Length(text) as len_string, Substr(text,Instr(text,’.’,1,4) as pos_4dot)+1,length(text)-Instr(text,’.’,1,4) as pos_4dot)) From ...
Gerardo Acaba Sr.'s user avatar
0 votes
1 answer
222 views

I would like to insert into a table values which come from another table without having duplicates. I tried this way but i doesn't work for me.. could you please assist me to find the right query for ...
K_mns's user avatar
  • 711
1 vote
1 answer
247 views

I have a situation at work where I need to create a new Dataframe from a previous one The previous dataframe looks like: |id|name|balance|deleted|minimum_balance|payment_provider_account_id|type|...
Marcelo Costa's user avatar
1 vote
1 answer
56 views

One query finds the aggregates the subtotals by country: SELECT customer.country, SUM(i.subtotal) AS total FROM invoices i LEFT JOIN customer ON i.customer_id = customer.id WHERE ...
Trouble Bucket's user avatar
1 vote
2 answers
3k views

the date is like 2021-07-23 the expected output is like this 2021-07-24 00:00:00+08 notice the +08 ? I tried like this below, but i am not getting the plus symbol s_table.school_date + INTERVAL '1 day'...
sasori's user avatar
  • 5,511
0 votes
1 answer
98 views

I have a postgresql function with 'GROUP BY' which works fine on my local server (postgresql version is 12.6) but gets the famous error 'column "f.fa_docnum" must appear in the GROUP BY ...
Erik Martre's user avatar
1 vote
1 answer
3k views

I want do something like: CREATE OR REPLACE FUNCTION __column_exists(TEXT, TEXT, TEXT) RETURNS bool as $$ SELECT exists(SELECT 1 FROM information_schema.columns WHERE (table_schema, table_name, ...
NewSheriff's user avatar
0 votes
1 answer
64 views

I have col A in the table and I want to truncate all the letters after last digit in the values of col A and create col B. Col A Col B A1234ABC A1234 B1234AB B1234 How can I convert col A to col B in ...
anukriti kulshrestha's user avatar
0 votes
2 answers
48 views

I have a table approval like below.. m_requisition_id ad_wf_activity_id bpname designation 1014546 1014546 Abul Kalam Azad Asst. Manager 1014546 1225097 Md. Hasan Zahir Plant Manager 1014546 1229239 ...
Zakir Hossain's user avatar
1 vote
1 answer
1k views

What I have: CREATE TYPE Item AS ( a bigint, b bigint ); CREATE TABLE items ( id bigint NOT NULL, a bigint NOT NULL, b bigint NOT NULL ); CREATE OR REPLACE FUNCTION items_insert( ...
Konstantin Primenko's user avatar
0 votes
0 answers
2k views

I have upgraded gitlab version from 9 to latest with failures and reverted back the changes in order to run. Solved most of the issues but stuck with this one the logs for sudo gitlab-ctl tail is ...
Bhuwan Bhandari's user avatar
2 votes
0 answers
529 views

I am using Spring Boot application to connect to remote Postgresql server (9.2) running behind Azure Network Security Group. When I set the hikari properties to default (means maxLifetime as 30 mts),I ...
code-geek's user avatar
  • 463
1 vote
1 answer
1k views

I tried doing this but got an error as: ERROR: column "2020-09-21t13:56:58z" does not exits Select to_timestamp("2020-09-21T13:56:58Z", "YYYY-MM-DDTHH24:MI:SSZ");
Vardhaman Jain's user avatar
-1 votes
1 answer
282 views

I want to display multiple columns from the join table, but only use one column to group by and order by My PostgreSQL query is like this: SELECT DISTINCT ON (r.id_rekrutmen) r.id_rekrutmen, ...
Kursus Komputer's user avatar
0 votes
1 answer
71 views

For reference, I am using Postgres 9.2.23. I have several tables where one table (user_group) is related to some other tables (eg: posts, group_invites, and some more other ones). There is, also a ...
dougalg's user avatar
  • 564

1
2 3 4 5
23