Information Search and Analysis Skills (Isas) : C E P C C I T
Information Search and Analysis Skills (Isas) : C E P C C I T
NAMA
FACULTY
Agung Prayitno
M. Rayi Hafiza
Faiq Miftakhul M.kom
SEMESTER
Preface
Praise and gratitude we pray to Almighty God for the completion of a paper
entitled "PostgreSQL". Over the moral and material support given in the
preparation of this paper, then we say a big thank you to Mr. Faiq Miftakhul who
have given many suggestions and corrections in the preparation of this paper and
our parents who have provided facilities and pray that we can complete the task
with the right time.
Hopefully, this paper can be useful for the readers. We realize that in this
paper is still far from perfect, therefore we accept suggestions and criticism that
will help improve towards perfection. Finally, we say thank you
Table of contents
CHAPTER I :INTRODUCTION .................................................................................................... 4
1.1 Background .......................................................................................................................... 4
1.2
1.3
1.4
3.2.1
Advantages............................................................................................................... 7
3.2.2
Disadvantage ........................................................................................................... 7
CHAPTER I :INTRODUCTION
1.1 Background
PostgreSQL is a powerful, open source object-relational database system. It has more
than 15 years of active development and a proven architecture that has earned it a strong
reputation for reliability, data integrity, and correctness. It runs on all major operating
systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris,
Tru64), and Windows. It is fully ACID compliant, has full support for foreign keys, joins,
views, triggers, and stored procedures (in multiple languages). It includes most SQL:2008
data types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE,
INTERVAL, and TIMESTAMP. It also supports storage of binary large objects, including
pictures, sounds, or video. It has native programming interfaces for C/C++, Java, .Net, Perl,
Python, Ruby, Tcl, ODBC
2.2 PostgreSQL
Any data contained in the SQL can be set according to need, an SQL language
composed of various key words. Some of these arithmetic and Procedural which in use is
always followed by the expression. Here are some basic SQL operators.
1986
First developed by Professor Michael Stonebraker,Sponsored by the Defense Advanced
Research ProjectsAgency (DARPA). This year is the initial concept to System
development.
1987
Developed definition of the data model, creation of rules, conventions rational and
architecture of the storage media.
1989
Postgre version 1 was launched with a lot of weaknesses in the concept of the rule.
1990
Postgre version 2 launched with improvements to the main rules.
1991
Postgre version 3 is launched with the support of multiple storage managers, an increase in
query executioner, and written he repeated the rule system.
1993
Postgre launched version 4.2 which is the forerunner of the DBMS future with
comprehensive features.
1994
Postgre changed its name to Postgres 95. Andrew Yu and Jolly Chen, adding an
interpreter for the SQL language.
1996
Postgres 95 changed its name to PostgreSQL. And this version has reached PostgreSQL
version 6.0 with the ability to more good and marked by the commencement of the
Postgres project Berkeley Research.
1997
PostgresSQL has developed and continues to develop as a relational database with a GPL
license.
3.2.2 Disadvantage
1. The less popular and suitable to work in a web environment when compared with mysql.
2. Lack of focus in terms of slimness of data and speed.
3. Architecture with multiprocessing is difficult to apply to Windows, because Windows sothread oriented.
4. PostgreSQL itself today can run on Windows, but through Cygwin emulation layer.
5. Less superior in terms of the availability of built-in functions.
6. Replication in PostgreSQL itself has not been included in the standard distribution.
7. PostgreSQL itself is limited only adding columns, renaming column, and renaming the
table.
http://screenshots.en.sftcdn.net/en/scrn/51000/51631/pgisql-interactive-sql-for-postgresql6.jpg
View in Windows 7
http://static.filehorse.com/screenshots/developer-tools/postgresql-screenshot-01.png
END
ALTER AGGREGATE
CREATE OPERATOR
ALTER CONVERSION
CREATE ROLE
ALTER DATABASE
CREATE RULE
ALTER DOMAIN
CREATE SCHEMA
ALTER FUNCTION
CREATE SEQUENCE
ALTER GROUP
CREATE TABLE
ALTER INDEX
CREATE TABLE AS
ALTER LANGUAGE
CREATE TABLESPACE
ALTER OPERATOR CLASS
CREATE TRIGGER
ALTER OPERATOR
CREATE TYPE
ALTER ROLE
CREATE USER
ALTER SCHEMA
CREATE VIEW
ALTER SEQUENCE
DEALLOCATE REASSIGN
ALTER TABLE
DECLARE
ALTER TABLESPACE
DELETE
ALTER TRIGGER
DROP AGGREGATE
ALTER TYPE
DROP CAST
ALTER USER
DROP CONVERSION
ANALYZE
DROP DATABASE
BEGIN
DROP DOMAIN
CHECKPOINT
DROP FUNCTION
CLOSE
DROP GROUP
CLUSTER
DROP INDEX
COMMENT
DROP LANGUAGE
COMMIT
DROP OPERATOR CLASS
COMMIT PREPARED
DROP OPERATOR
COPY
DROP OWNED
CREATE AGGREGATE
CREATE CAST
CREATE CONSTRAINT
TRIGGER
CREATE CONVERSION
CREATE DATABASE
CREATE DOMAIN
CREATE FUNCTION
CREATE GROUP
CREATE INDEX
CREATE LANGUAGE
DROP ROLE
DROP RULE
DROP SCHEMA
DROP SEQUENCE
DROP TABLE
DROP TABLESPACE
DROP TRIGGER
DROP TYPE
DROP USER
DROP VIEW
EXECUTE
EXPLAIN
FETCH
GRANT
INSERT
LISTEN
LOAD
LOCK
MOVE
NOTIFY
PREPARE
PREPARE TRANSACTION
OWNED
REINDEX
RELEASE SAVEPOINT
RESET
REVOKE
ROLLBACK
ROLLBACK PREPARED
ROLLBACK TO SAVEPOINT
SAVEPOINT
SELECT
SELECT INTO
SET
SET CONSTRAINTS
SET ROLE
SET SESSION
AUTHORIZATION
SET TRANSACTION
SHOW
START TRANSACTION
TRUNCATE
UNLISTEN
UPDATE
VACUUM
VALUES
\cd [DIR]
change the current working directory
\copyright
show PostgreSQL usage and distribution terms
\encoding [ENCODING] show or set client encoding
\h [NAME]
help on syntax of SQL commands, * for all commands
\q
quit psql
\set [NAME [VALUE]]
set internal variable, or list all if no parameters
\timing
toggle timing of commands (currently off)
\unset NAME
unset (delete) internal variable
\! [COMMAND]
execute command in shell or start interactive shell
Input/Output
\echo [STRING]
\i FILE
\o [FILE]
\qecho [STRING]
Informational
\d [NAME]
describe table, index, sequence, or view
\d{t|i|s|v|S} [PATTERN] (add "+" for more detail)
list tables/indexes/sequences/views/system tables
\da [PATTERN]
list aggregate functions
\db [PATTERN]
list tablespaces (add "+" for more detail)
\dc [PATTERN]
list conversions
\dC
list casts
\dd [PATTERN]
show comment for object
\dD [PATTERN]
list domains
\df [PATTERN]
\dg [PATTERN]
\dn [PATTERN]
\do [NAME]
\dl
\dp [PATTERN]
\dT [PATTERN]
\du [PATTERN]
\l
\z
Formatting
\a
toggle between unaligned and aligned output mode
\C [STRING]
set table title, or unset if none
\f [STRING]
show or set field separator for unaligned query output
\H
toggle HTML output mode (currently off)
\pset NAME [VALUE]
set table output option
(NAME := {format|border|expanded|fieldsep|footer|null|
numericlocale|recordsep|tuples_only|title|tableattr|pager})
\t
show only rows (currently off)
\T [STRING]
set HTML <table> tag attributes, or unset if none
\x
toggle expanded output (currently off)
(6) -Set to expanded mode. The first query is output in expanded mode which means that
the column headers are repeated for each row and the column of each row is output as a
separate row.
(8), (14) -Force the queries to output as HTML tables.
(9), (10) - We use the aggregate function string_agg(), which was introduced in
PostgreSQL
9.0 To concatenate all properties in the same category into a single column. We are also
taking advange of the new ORDER BY clause for aggregate functions introduced in 9.0 to
sort properties by name.
(12) - Set to expanded mode off. The second and third query are output in non-expanded
mode which means that there is one output row per table row.
(7), (13) -Set to tuples only mode. This causes queries to not have any column headers or
row count.
4.2 Suggestion
PostgreSQL is a database processing application that is great for beginners because it has
a variety of features to simplify database processing, but PostgreSQL requires a lot of data
for processing. PostgreSQL is also very slow when performing the process
BIBLIOGRAPHY
Reference from Site:
http://blog.uin-malang.ac.id/
www.postgresql.org
https://help.ubuntu.com/community/PostgreSQL
E-Books: