0% found this document useful (0 votes)
78 views2 pages

Lab 4 - More PostgreSQL Administration

The document outlines the details for Graded Assignment 4 in the EECE 433 Database Management Systems course, focusing on advanced PostgreSQL administration. It includes general rules regarding academic integrity, lab attendance, and assignment submission, as well as specific objectives and tasks for the assignment divided into three parts. Students are required to demonstrate their understanding of PostgreSQL through practical exercises, including user management, validation, and database backup and restoration, with a final submission of a single .sql file containing their work.

Uploaded by

sobohalaa90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Lab 4 - More PostgreSQL Administration

The document outlines the details for Graded Assignment 4 in the EECE 433 Database Management Systems course, focusing on advanced PostgreSQL administration. It includes general rules regarding academic integrity, lab attendance, and assignment submission, as well as specific objectives and tasks for the assignment divided into three parts. Students are required to demonstrate their understanding of PostgreSQL through practical exercises, including user management, validation, and database backup and restoration, with a final submission of a single .sql file containing their work.

Uploaded by

sobohalaa90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Department of Electrical and Computer Engineering

EECE 433 Database Management Systems


Spring 2025

Class Instructor: Dr. Imad Moukadem, Lab Instructor: M. Zaher Kanafani


Graduate Assistant: Miss Maria Slim

Graded Assignment 4 – PostgreSQL More Advanced Administration

Part of this programming assignment will be presented to the lab instructor during the lab.
It has to be submitted to Moodle by next week.

General Rules:
• Cheating and Copying: Any form of cheating or copying from other students' work will result in a zero
grade for all involved students, regardless of who copied from whom. Each assignment must be entirely
unique.
• The instructor will explain to all students what is required, and give some useful hints.
• You will have assignments to be presented and graded during the lab. In case the student did not finish,
he/she will be graded on the finished part.
• Sometimes the lab will span two weeks, a first part will be presented in the first lab session.
• You can ask questions during the lab, regarding what to do, not how to do.
• You can make use of your notes, and any information online including chatGPT and Google.
• You can use your laptops, or the available desktops.
• Please refer to the Student Code of Conduct, all relevant university policies, and the course syllabus for
further penalties related to academic offenses.
• Students that have accommodation letters should contact us as soon as possible.
• Lab attendance is mandatory, any absentee will have a zero for any missing lab.
• In case you have a valid excuse to miss a lab, please present it before the lab for the instructor approval.

Objectives:
• The purpose of this lab is to provide students with their first practice in understanding PostgreSQL
database administration.
• This lab will also introduce the use of basic SQL statements, like Select, Insert Into, and Update, that you
will learn deeper later on.
• PostgreSQL is a strong RDBMS that support all DBMS features such as concurrency, stored procedures
and functions, triggers and database administration. It is useful in designing from small personal database
to more advanced ones.
• In this lab, we will stress on more advanced roles work and to backup and restore a database.
• The instructor may not ask to show all assignment parts, but only some. Be sure when presenting to have
everything ready.
Page 1 of 2
PART I – More on PostgreSQL Administration, user password
• Open PostgreSQL, connect to the available database postgres, the default password is postgres.
o Use your password if you changed it during installation.
• Right click schema, and select Query Tool.
• Display the current set user.
• Change the password of the read user.
• Set role to the power user with full privileges on database EECE433.
• Can you change the password of the above user?
• Now set the role directly to the user, can you change its password?
• Set role to postgres, create a new user who will expire tomorrow.

PART II – More on PostgreSQL Administration, validation


• Write the select query to:
o Display only the available users and their date validation.
o Check permissions granted to a specific role, in this case the power user.
o Check Ownership granted to a specific role, in this case the power user.

PART III – More on PostgreSQL Administration, backup and restore


• Using the power user, create another table of your choice in the database EECE433.
• Insert in it 3 rows of data.
• Now we want to backup the database EECE433.
• Write click the database name and select backup.
• Follow the instructions needed.
• Where does PostgreSQL store the backup file by default?
• Write a query to terminate connection to the current database EECE433.
• Drop the database EECE433, right click and select delete.
• Now restore the database EECE433 by right clicking postgres database and selecting restore.
• What did you remark? What happened?
• What must be done correctly for a correct restore?
• Answer these questions as comments in the .sql file.

What you need to submit on Moodle:


• Save all you work you did for the 3 parts in just one .sql file.
• Add appropriate comments to explain your successive steps.
• You need to submit only one .sql file to Moodle:

Page 2 of 2

You might also like