ENGLISH

PostgreSQL: Introduction and Concepts

Book information

Publisher
Pearson Education
Year
2000
ISBN
9780201703313, 0201703319
Language
english
Format
DJVU
Filesize
1 MB (1197505 bytes)
Edition
1st
Pages
490\490
Topic
Computers Databases
Time added
2010-08-30 15:18:36

Description

This book took me from being a SQL novice (let alone a PostgreSQL novice) to being able to being able to use PostgreSQL for business apps. I'm not quite sure why some reviewers knocked it. It has much more content than the FAQ, good examples and a reference section. One reviewer knocked the reference section, claiming the book was half full of appendices... in fact the reference section is what you most often go to the book for after you've worked through the basic concepts in the first section. I think the layout is slightly odd - the examples of commands and their results are grouped together in sections that are usually a page or two ahead of the text that explains them. So you spend a bit of time flicking pages to see examples. But once you get the hang of this style it's not exactly the biggest pain in the world. I think it's a very good book, one that took me from being a SQL beginner yet is still useful as a day to day reference. Lee List of Figures......Page 7 List of Tables......Page 15 Foreword......Page 23 Preface......Page 25 Acknowledgments......Page 27 University of California at Berkeley......Page 29 PostgreSQL Global Development Team......Page 30 Summary......Page 32 Starting a Database Session......Page 33 Controlling a Session......Page 34 Summary......Page 37 Relational Databases......Page 39 Creating Tables......Page 41 Adding Data with Insert ......Page 42 Viewing Data with Select......Page 43 Selecting Specific Rows with Where......Page 45 Destroying Tables......Page 47 Summary......Page 50 Data Types......Page 51 Using Null Values......Page 53 Column Labels......Page 54 And/Or Usage......Page 58 Range of Values......Page 61 Like Comparison......Page 63 Regular Expressions......Page 64 Case Clause......Page 65 Distinct Rows......Page 68 Set, Show, and Reset......Page 71 Summary......Page 75 Aggregates......Page 77 Query Tips......Page 79 Summary......Page 83 Joined Tables......Page 85 Creating Joined Tables......Page 88 Performing Joins......Page 90 Three- and Four-Table Joins......Page 93 Additional Join Possibilities......Page 96 Choosing a Join Key......Page 98 One-to-Many Joins......Page 99 Table Aliases and Self-joins......Page 101 Non-equijoins......Page 102 Ordering Multiple Parts......Page 103 Summary......Page 105 Object Identification Numbers (oids)......Page 107 Sequences......Page 109 Using Sequences to Number Rows ......Page 110 Manually Numbering Rows......Page 113 Summary......Page 114 Union, Except, and Intersect Clauses......Page 115 Subqueries......Page 119 Update with From......Page 129 Creating Tables Using Select......Page 131 Summary......Page 133 Purpose of Data Types......Page 135 Installed Types......Page 136 Support Operators......Page 139 Support Variables......Page 143 Large Objects (blobs)......Page 144 Summary......Page 147 Transactions......Page 149 Multistatement Transactions......Page 150 Visibility of Committed Transactions......Page 152 Read Committed and Serializable Isolation Levels......Page 153 Deadlocks......Page 156 Summary......Page 158 Indexes......Page 159 Unique Indexes......Page 160 Vacuum......Page 161 Explain......Page 162 Summary......Page 164 Cursors......Page 165 Summary......Page 166 Temporary Tables......Page 169 Grant and Revoke......Page 171 Inheritance......Page 173 Views......Page 176 Rules......Page 177 Summary......Page 182 Unique......Page 183 Foreign Key/References......Page 186 Summary......Page 194 Copy File Format......Page 197 Delimiters......Page 199 Backslashes and Null Values......Page 201 Summary......Page 203 Psql......Page 205 Summary......Page 212 Programming Interfaces......Page 215 C Language Interface (libpq)......Page 217 Compiling Programs......Page 219 Assignment to Program Variables......Page 223 Scripting Languages......Page 224 Perl......Page 226 Python......Page 227 Installing Scripting Languages......Page 228 Summary......Page 229 Functions......Page 231 Sql Functions......Page 232 Pl/pgsql Functions......Page 236 Triggers......Page 238 Summary......Page 244 Write the C Code......Page 247 Register the New Functions......Page 248 Create Operators, Types, and Aggregates......Page 249 Summary......Page 250 Creating Users......Page 251 Access Configuration......Page 253 Backup and Restore......Page 255 Server Start-up and Shutdown......Page 256 Monitoring......Page 257 Performance......Page 258 System Tables......Page 259 Summary......Page 260 Modifying the Source Code......Page 261 Frequently Asked Questions (faqs)......Page 262 Installation......Page 283 PostgreSQL Nonstandard Features by Chapter......Page 285 ABORT......Page 287 ALTER GROUP......Page 288 ALTER TABLE......Page 289 ALTER USER......Page 292 BEGIN......Page 293 CLOSE......Page 295 CLUSTER......Page 296 COMMENT......Page 298 COMMIT......Page 299 COPY......Page 300 CREATE AGGREGATE......Page 304 CREATE CONSTRAINT TRIGGER......Page 306 CREATE DATABASE......Page 307 CREATE FUNCTION......Page 309 CREATE GROUP......Page 313 CREATE INDEX......Page 314 CREATE LANGUAGE......Page 317 CREATE OPERATOR......Page 320 CREATE RULE......Page 324 CREATE SEQUENCE......Page 328 CREATE TABLE......Page 330 CREATE TABLE AS......Page 347 CREATE TRIGGER......Page 348 CREATE TYPE......Page 350 CREATE USER......Page 353 CREATE VIEW......Page 355 createdb......Page 357 createlang......Page 359 createuser......Page 360 DECLARE......Page 361 DELETE......Page 364 DROP AGGREGATE......Page 365 DROP DATABASE......Page 366 DROP FUNCTION......Page 367 DROP GROUP......Page 368 DROP INDEX......Page 369 DROP LANGUAGE......Page 370 DROP OPERATOR......Page 371 DROP RULE......Page 373 DROP SEQUENCE......Page 374 DROP TABLE......Page 375 DROP TRIGGER......Page 376 DROP TYPE......Page 377 DROP USER......Page 378 DROP VIEW......Page 379 dropdb......Page 380 droplang......Page 381 dropuser......Page 383 ecpg......Page 384 EXPLAIN......Page 388 FETCH......Page 390 GRANT......Page 393 initdb......Page 396 initlocation......Page 397 INSERT......Page 398 ipcclean......Page 400 LISTEN......Page 401 LOAD......Page 402 LOCK......Page 404 MOVE......Page 407 NOTIFY......Page 408 pg_ctl......Page 410 pg_dump......Page 413 pg_dumpall......Page 416 pg_passwd......Page 418 pg_upgrade......Page 419 pgaccess......Page 421 pgtclsh......Page 423 postgres......Page 424 postmaster......Page 427 psql......Page 430 REINDEX......Page 450 RESET......Page 451 REVOKE......Page 452 ROLLBACK......Page 454 SELECT......Page 455 SELECT INTO......Page 464 SET......Page 465 SHOW......Page 471 TRUNCATE......Page 472 UNLISTEN......Page 473 UPDATE......Page 474 VACUUM......Page 476 vacuumdb......Page 478 Index......Page 481

Similar books