aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2002-04-02 08:51:52 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2002-04-02 08:51:52 +0000
commitc26a44db08677bccc04426b42973bb372e6e3046 (patch)
treebbea51ec6e6036abcf25db88235010ecdf67b384 /src/include
parentb4bedfa956a32bd4fcb56822d3c09f72762cccce (diff)
downloadpostgresql-c26a44db08677bccc04426b42973bb372e6e3046.tar.gz
postgresql-c26a44db08677bccc04426b42973bb372e6e3046.zip
Removed obsolete DROP_COLUMN_HACK stuff.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/pg_attribute.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/include/catalog/pg_attribute.h b/src/include/catalog/pg_attribute.h
index d075e49aca0..065850bc274 100644
--- a/src/include/catalog/pg_attribute.h
+++ b/src/include/catalog/pg_attribute.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_attribute.h,v 1.87 2002/03/29 19:06:18 tgl Exp $
+ * $Id: pg_attribute.h,v 1.88 2002/04/02 08:51:49 inoue Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@@ -182,20 +182,6 @@ typedef FormData_pg_attribute *Form_pg_attribute;
#define Anum_pg_attribute_atthasdef 15
-#ifdef _DROP_COLUMN_HACK__
-/*
- * CONSTANT and MACROS for DROP COLUMN implementation
- */
-#define DROP_COLUMN_OFFSET -20
-#define COLUMN_IS_DROPPED(attribute) ((attribute)->attnum <= DROP_COLUMN_OFFSET)
-#define DROPPED_COLUMN_INDEX(attidx) (DROP_COLUMN_OFFSET - attidx)
-#define ATTRIBUTE_DROP_COLUMN(attribute) \
- Assert((attribute)->attnum > 0); \
- (attribute)->attnum = DROPPED_COLUMN_INDEX((attribute)->attnum); \
- (attribute)->atttypid = (Oid) -1; \
- (attribute)->attnotnull = false; \
- (attribute)->atthasdef = false;
-#endif /* _DROP_COLUMN_HACK__ */
/* ----------------
* SCHEMA_ macros for declaring hardcoded tuple descriptors.