Free PGCES-02 Exam Braindumps (page: 14)

Page 13 of 36

Based on the following request, select the most appropriate command for creating a database cluster.
?Character encoding of the template database needs to be EUC_JP ?Locale is not used

  1. initdb --locale=EUC_JP --no-encoding
  2. initdb --default-encoding=EUC_JP
  3. pg_ctl init --locale=EUC_JP
  4. initdb --encoding=EUC_JP --no-locale
  5. pg_ctl init --encoding=EUC_JP

Answer(s): D



Select the correct SQL statement that records the space occupied by deleted or updated rows for later reuse, and also updates statistics.

  1. VACUUM
  2. VACUUM ANALYZE
  3. EXPLAIN
  4. EXPLAIN ANALYZE
  5. NOTIFY

Answer(s): B



A sequence has the following definition:
CREATE SEQUENCE seq1 CACHE 10 CYCLE;
Select the value that is returned by executing the following SQL. SELECT nextval('seq1');

  1. 0
  2. 1
  3. 10
  4. 11
  5. -10

Answer(s): B



A table and view are defined as follows:
CREATE TABLE item (id INT, name TEXT, description TEXT);
CREATE VIEW item_simple AS SELECT id, name FROM item;
A set of SQL statements were executed in the order below. Select the most appropriate statement concerning the execution results.
BEGIN;
SELECT * FROM item_simple;
INSERT INTO item_simple VALUES (1, 'item_name_1');
UPDATE item_simple SET name = 'item_name_2' WHERE id = 1; DELETE FROM item_simple;
END;

  1. An error is generated at the point the SELECT statement is executed.
  2. An error is generated at the point the INSERT statement is executed.
  3. An error is generated at the point the UPDATE statement is executed.
  4. An error is generated at the point the DELETE statement is executed.
  5. No error is generated.

Answer(s): B






Post your Comments and Discuss Postgresql PGCES-02 exam with other Community members:

PGCES-02 Exam Discussions & Posts