postgres-intro Flashcards

1
Q

What is PostgreSQL and what are some alternative relational databases?

A

It is a relational database that stores information and relates that information to other groups of information through tables. MySQL and SQL Server by Microsoft.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some advantages of learning a relational database?

A

They have data integrity and make data corruption as unlikely as possible. Learning SQL is a transferrable skill that allows you to use most other relational databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is one way to see if PostgreSQL is running?

A

sudo service postgresql status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is sudo?

A

elevates the user to admin status in the CLI environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the admin acc in linux?

A

root, and to get there you type sudo su to make yourself root.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why must we use sudo to access the status of postgresql?

A

Admin privileges are required to access the postgresql service database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you send a command to get a list of the databases in postgresql?

A

psql -c ā€œ\lā€

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you connect to a particular database in postgresql?

A

psql database_name or in our environment to connect to the dev database just enter psql

How well did you know this?
1
Not at all
2
3
4
5
Perfectly