« first day (2031 days earlier)      last day (627 days later) » 

7:01 AM
@TehShrike @TehShrike, thanks it helped me. I have written answer there - quora.com/…
 
 
7 hours later…
2:06 PM
@SandeepanNath Cool. Like I said though, you can get that result without using a subquery, by dropping the outer query and changing the outer WHERE to a HAVING clause.
 
2:45 PM
Hi, fellow Stackoverflowers!
Would you like to help some noob, or you will be just annoyed?
I am wandering if linux users and postgres users are the same entities, but google does not understand me
 
3:28 PM
namely is postgres a linux user name or a database owner name?
 
 
4 hours later…
7:13 PM
@СашкоЛихенко Nope, database users are their own entities, separate from the system. postgresql.org/docs/7.4/static/user-manag.html
 
but how then explain that i can alter current linux user by sudo su - postgres
i clearly get from sashko@computer to postgres@computer in terminal
 
7:39 PM
@СашкоЛихенко I don't understand what you're asking
You're talking about the postgres system user?
 
That's a system user, it's not a user you can use to connect to the database as far as I know.
There are system users, on your OS. There are database users, that you can use to connect to the database.
 
but if i run \du inside psql, i will get database users list with postgres in it
 
> In order to bootstrap the database system, a freshly initialized system always contains one predefined user. This user will have the fixed ID 1, and by default (unless altered when running initdb) it will have the same name as the operating system user that initialized the database cluster. Customarily, this user will be named postgres. In order to create more users you first have to connect as this initial user.
You should really read the Postgres user management documentation: postgresql.org/docs/8.0/static/user-manag.html
 

« first day (2031 days earlier)      last day (627 days later) »