Book Image

PostgreSQL 9 Administration Cookbook - Second Edition

Book Image

PostgreSQL 9 Administration Cookbook - Second Edition

Overview of this book

Table of Contents (19 chapters)
PostgreSQL 9 Administration Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Tables and Data

In this chapter, we will cover the following recipes:

  • Choosing good names for database objects

  • Handling objects with quoted names

  • Enforcing the same name and definition for columns

  • Identifying and removing duplicates

  • Preventing duplicate rows

  • Finding a unique key for a set of data

  • Generating test data

  • Randomly sampling data

  • Loading data from a spreadsheet

  • Loading data from flat files