python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to get cerain count of rows near specific row using PostgreSQL?
This is my test data:
id | name
---------
1 | aaa
2 | bbb
3 | ccc
4 | ddd
5 | eee
6 | fff
7 | ggg
And I need to get constant count of rows (N) in my result (sorting is always by id), when rows...
ThatsMe
Votes: 0
Answers: 1
Can't grant all tables permission denied
I can't grant a new role on all tables. A table denies the query. How can I grant the user to be able run this command?
CREATE ROLE userrole123 WITH LOGIN PASSWORD 'userrole123' VALID UNTIL '2024-01-0...
titanic
Votes: 0
Answers: 1
Set appName for PDO connections made via PHP
I use PDO in PHP to connect to a PostgreSQL database.
Does it allow setting the application name when making this connection?
try {
$conn = new PDO ( 'pgsql:host=' . $host . ';dbname=' . $dbname, ...
Tom
Votes: 0
Answers: 1
postgres not using btree_gist index
I have a huge table with a primary key and a btree_gist index.
When I query for the columns in the btree_gist index, I would expect that the index is used and the query performs quite fast. However, t...
paul
Votes: 0
Answers: 2