postgresql tag

79 questions


2 answers
52 views
0
Does VACUUM (not FULL) in PostgreSQL make it easier to cache into memory?

According to the video below from 6:00, it will be difficult to cache into memory if unnecessary areas increase.On the other hand, according to 7:30~, non-FULL VACUUM only registers unnecessary areas ...

2 years ago

1 answers
85 views
0
Error running pg_dump on git bash: too many command-line arguments

I did the following on the git bash I installed on Windows 10.There will be no response.pg_dump-c-Uxxxx-h xxxx.rds.amazonaws.com-f C:\Users\xxxx.sqlWhen I ran the same command at the command prompt, t...

2 years ago

1 answers
52 views
0
PostgreSQL does not work: could not connect to server

PostgreSQL does not seem to work on macOS.$brew services list Name Status User Plistmysql stopped postgresql error user/Users/user/Library/LaunchAgent/homebrew.mxcl.postgresql.plistBy the way, psql-l ...

2 years ago

1 answers
98 views
0
I want to connect to postgresql from perl file and get results

I'm using the perl file pg (is it like including?) and doing pg::connectdb, but I'd like to check the return value of SQL.# begin.$conn=Pg::connectdb(host=$hostport=$portdbname=$dbname user=$user);$re...

2 years ago

2 answers
109 views
0
I want the Term display to be the default sjis

The Japanese data in DB (PostgreSQL) is sjis when connected to each server by ssh from TeraTerm, but you have to set set client_encoding to 'sjis' every time to display Japanese.I'd like to not set th...

2 years ago

2 answers
91 views
0
The order of records (id) in the table will be changed after bulk update in the Rails app's Activerecord.

We have made a new registration as follows.After that, I pressed the Edit button to change the product name from Product B to Hogehoge.2 Stainless Steel BF-078 10K 350A 3P 2,000 3,000 4,000 9,0002 Sta...


1 answers
126 views
0
Ambiguous search LIKE statements do not hit

I used the postgreSQL LIKE statement in the ORM called gorm in the Go language, but somehow I can't get the data.The model is assumed to be: type Model structure { ID int Name string Phonetic string...

2 years ago

1 answers
48 views
0
Sort PostgreSQL in alphabetical and numeric ascending order

I'd like to sort PostgreSQL version 9.3 with ascending alphabetic characters and ascending numeric characters.Is there a way?000100030010a001d001k001i001z001↓ If I do ORDER BY, I would like to sort it...

2 years ago

1 answers
48 views
0
Is it possible to use the WITH clause in the IN clause?

Is it possible to include the WITH clause in the IN clause as shown in SQL below?SELECT* FROM customer WHERE id IN( WITH_t2AS (SELECT id FROM t2 WHERE id > 1) SELECT* FROM t1 WHERE id1 IN (SELECT i...

2 years ago

1 answers
131 views
0
I don't know how to connect PgAdmin4 to a DB container containing data on docker.

I would like to connect PgAdmin4 to a DB container with data in Win10 and WSL2 and operate it from a browser.Use the following containers with data, and they seem to be doing well, so you can throw a ...

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.