Remove FAQ mention of DROP column.
authorBruce Momjian
Tue, 1 Feb 2005 01:41:37 +0000 (01:41 +0000)
committerBruce Momjian
Tue, 1 Feb 2005 01:41:37 +0000 (01:41 +0000)
doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index c092e10b9cfca55ebb42b2f1da79a973d2a954d0..3c35b3c2ec6adb04ed7fb84d493bbed7d368f197 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Mon Jan 31 20:35:58 EST 2005
+   Last updated: Mon Jan 31 20:41:21 EST 2005
    
    Current maintainer: Bruce Momjian ([email protected])
    
@@ -51,7 +51,7 @@
    4.1) How do I SELECT only the first few rows of a query? A random row?
    4.2) How do I find out what tables, indexes, databases, and users are
    defined? How do I see the queries used by psql to display them?
-   4.3) How do you remove a column from a table, or change its data type?
+   4.3) How do you change a column's data type?
    4.4) What is the maximum size for a row, a table, and a database?
    4.5) How much database disk space is required to store data from a
    typical text file?
    query to get information about the database.
    
    There are also system tables beginning with pg_ that describe these
-   too. Use psql -l will list all databases.
+   too.
+   
+   Use psql -l will list all databases.
    
    Also try the file pgsql/src/tutorial/syscat.source. It illustrates
    many of the SELECTs needed to get information from the database system
    tables.
    
-    4.3) How do you remove a column from a table, or change its data type?
+    4.3) How do you change a column's data type?
     
-   DROP COLUMN functionality was added in release 7.3 with ALTER TABLE
-   DROP COLUMN. In earlier versions, you can do this:
-    BEGIN;
-    LOCK TABLE old_table;
-    SELECT ...  -- select all columns but the one you want to remove
-    INTO TABLE new_table
-    FROM old_table;
-    DROP TABLE old_table;
-    ALTER TABLE new_table RENAME TO old_table;
-    COMMIT;
-
    Changing the data type of a column can be done easily in 8.0 and later
    with ALTER TABLE ALTER COLUMN TYPE.
    
index 1385d5901271cf75e3527ca556a2e554b2605626..71fd85771075d7f2e82deb2911ba675625ba8c43 100644 (file)
@@ -10,7 +10,7 @@
   alink="#0000ff">
     

Frequently Asked Questions (FAQ) for PostgreSQL

 
-    

Last updated: Mon Jan 31 20:35:58 EST 2005

+    

Last updated: Mon Jan 31 20:41:21 EST 2005

 
     

Current maintainer: Bruce Momjian (

@@ -74,8 +74,7 @@
      4.2) How do I find out what tables, indexes,
     databases, and users are defined?  How do I see the queries used
     by psql to display them?
-     4.3) How do you remove a column from a
-    table, or change its data type?
+     4.3) How do you change a column's data type?
      4.4) What is the maximum size for a row, a
     table, and a database?
      4.5) How much database disk space is required
     database.

 
     

There are also system tables beginning with pg_ that describe

-    these too. Use psql -l will list all databases.

+    these too.

+    
+    

Use psql -l will list all databases.

 
     

Also try the file pgsql/src/tutorial/syscat.source. It

     illustrates many of the SELECTs needed to get
     information from the database system tables.

 
-    

4.3) How do you remove a column from a

-    table, or change its data type?
-
-    

DROP COLUMN functionality was added in release 7.3

-    with ALTER TABLE DROP COLUMN.  In earlier versions,
-    you can do this:

-
-    BEGIN;
-    LOCK TABLE old_table;
-    SELECT ...  -- select all columns but the one you want to remove
-    INTO TABLE new_table
-    FROM old_table;
-    DROP TABLE old_table;
-    ALTER TABLE new_table RENAME TO old_table;
-    COMMIT;
-
+    

4.3) How do you change a column's data type?

 
     

Changing the data type of a column can be done easily in 8.0

     and later with ALTER TABLE ALTER COLUMN TYPE.