diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-21 17:22:36 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-21 17:22:36 +0000 |
| commit | e67ff6b6706540f16640e5025864d6063130b502 (patch) | |
| tree | bb6de1596f3741d45e1d1db302aa82e363aa89de /src/backend/commands | |
| parent | b503cbe3194fd21686335bb05eb48d79f3c6384b (diff) | |
| download | postgresql-e67ff6b6706540f16640e5025864d6063130b502.tar.gz | |
fmgr interface mopup work. Use new DatumGetBool and BoolGetDatum
macros where appropriate (the code used to have several different ways
of doing that, including Int32, Int8, UInt8, ...). Remove last few
references to float32 and float64 typedefs --- it's all float4/float8
now. The typedefs themselves should probably stay in c.h for a release
or two, though, to avoid breaking user-written C functions.
Diffstat (limited to 'src/backend/commands')
| -rw-r--r-- | src/backend/commands/analyze.c | 6 | ||||
| -rw-r--r-- | src/backend/commands/command.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 757003f811..1747132f8a 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.4 2000/08/06 04:40:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.5 2000/08/21 17:22:32 tgl Exp $ * *------------------------------------------------------------------------- @@ -436,8 +436,8 @@ update_attstats(Oid relid, int natts, VacAttrStats *vacattrstats) if (VacAttrStatsEqValid(stats)) { - float32data selratio; /* average ratio of rows selected - * for a random constant */ + float4 selratio; /* average ratio of rows selected + * for a random constant */ /* Compute disbursion */ if (stats->nonnull_cnt == 0 && stats->null_cnt == 0) diff --git a/src/backend/commands/command.c b/src/backend/commands/command.c index 68487f64ff..13d0ad5649 100644 --- a/src/backend/commands/command.c +++ b/src/backend/commands/command.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.94 2000/08/04 04:16:06 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.95 2000/08/21 17:22:32 tgl Exp $ * * NOTES * The PerformAddAttribute() code, like most of the relation @@ -614,7 +614,7 @@ AlterTableAlterColumn(const char *relationName, Int16GetDatum(attnum)); ScanKeyEntryInitialize(&scankeys[2], 0x0, Anum_pg_attribute_atthasdef, F_BOOLEQ, - Int32GetDatum(TRUE)); + BoolGetDatum(true)); scan = heap_beginscan(attr_rel, false, SnapshotNow, 3, scankeys); AssertState(scan != NULL); |
