Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a5d7ba77
Commit
a5d7ba77
authored
Oct 07, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust comments previously moved to column 1 by pgident.
parent
9da50e1f
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
45 additions
and
47 deletions
+45
-47
contrib/dbase/dbf.c
contrib/dbase/dbf.c
+1
-1
contrib/fuzzystrmatch/dmetaphone.c
contrib/fuzzystrmatch/dmetaphone.c
+3
-3
contrib/intagg/int_aggregate.c
contrib/intagg/int_aggregate.c
+2
-2
contrib/spi/refint.c
contrib/spi/refint.c
+1
-1
contrib/spi/timetravel.c
contrib/spi/timetravel.c
+2
-2
contrib/tablefunc/tablefunc.c
contrib/tablefunc/tablefunc.c
+2
-2
contrib/xml2/xslt_proc.c
contrib/xml2/xslt_proc.c
+1
-1
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+2
-2
src/backend/commands/typecmds.c
src/backend/commands/typecmds.c
+2
-2
src/backend/optimizer/geqo/geqo_ox2.c
src/backend/optimizer/geqo/geqo_ox2.c
+2
-2
src/backend/utils/adt/acl.c
src/backend/utils/adt/acl.c
+2
-2
src/backend/utils/adt/inet_net_pton.c
src/backend/utils/adt/inet_net_pton.c
+2
-2
src/backend/utils/adt/rowtypes.c
src/backend/utils/adt/rowtypes.c
+2
-2
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+2
-2
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+4
-4
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_backup_tar.c
+3
-3
src/bin/psql/command.c
src/bin/psql/command.c
+2
-2
src/include/executor/execdebug.h
src/include/executor/execdebug.h
+2
-2
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+2
-3
src/port/exec.c
src/port/exec.c
+2
-3
src/port/getopt.c
src/port/getopt.c
+1
-1
src/test/regress/regress.c
src/test/regress/regress.c
+3
-3
No files found.
contrib/dbase/dbf.c
View file @
a5d7ba77
...
@@ -505,7 +505,7 @@ dbf_put_record(dbhead * dbh, field * rec, u_long where)
...
@@ -505,7 +505,7 @@ dbf_put_record(dbhead * dbh, field * rec, u_long where)
if
(
write
(
dbh
->
db_fd
,
data
,
dbh
->
db_rlen
)
!=
dbh
->
db_rlen
)
if
(
write
(
dbh
->
db_fd
,
data
,
dbh
->
db_rlen
)
!=
dbh
->
db_rlen
)
return
DBF_ERROR
;
return
DBF_ERROR
;
/* There's a 0x1A at the end of a dbf-file */
/* There's a 0x1A at the end of a dbf-file */
if
(
where
==
dbh
->
db_records
)
if
(
where
==
dbh
->
db_records
)
{
{
if
(
write
(
dbh
->
db_fd
,
&
end
,
1
)
!=
1
)
if
(
write
(
dbh
->
db_fd
,
&
end
,
1
)
!=
1
)
...
...
contrib/fuzzystrmatch/dmetaphone.c
View file @
a5d7ba77
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
/*
/*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
* $Id: dmetaphone.c,v 1.
3 2004/08/29 05:06:35
momjian Exp $
* $Id: dmetaphone.c,v 1.
4 2004/10/07 15:21:49
momjian Exp $
*/
*/
...
@@ -950,7 +950,7 @@ DoubleMetaphone(char *str, char **codes)
...
@@ -950,7 +950,7 @@ DoubleMetaphone(char *str, char **codes)
current
+=
2
;
current
+=
2
;
}
}
else
else
/* also takes care of 'HH' */
/* also takes care of 'HH' */
current
+=
1
;
current
+=
1
;
break
;
break
;
...
...
contrib/intagg/int_aggregate.c
View file @
a5d7ba77
...
@@ -229,7 +229,7 @@ int_enum(PG_FUNCTION_ARGS)
...
@@ -229,7 +229,7 @@ int_enum(PG_FUNCTION_ARGS)
pc
->
num
=
0
;
pc
->
num
=
0
;
}
}
else
else
/* use an existing one */
/* use an existing one */
pc
=
(
CTX
*
)
fcinfo
->
context
;
pc
=
(
CTX
*
)
fcinfo
->
context
;
/* Are we done yet? */
/* Are we done yet? */
if
(
pc
->
num
>=
pc
->
p
->
items
)
if
(
pc
->
num
>=
pc
->
p
->
items
)
...
@@ -242,7 +242,7 @@ int_enum(PG_FUNCTION_ARGS)
...
@@ -242,7 +242,7 @@ int_enum(PG_FUNCTION_ARGS)
rsi
->
isDone
=
ExprEndResult
;
rsi
->
isDone
=
ExprEndResult
;
}
}
else
else
/* nope, return the next value */
/* nope, return the next value */
{
{
int
val
=
pc
->
p
->
array
[
pc
->
num
++
];
int
val
=
pc
->
p
->
array
[
pc
->
num
++
];
...
...
contrib/spi/refint.c
View file @
a5d7ba77
...
@@ -495,7 +495,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
...
@@ -495,7 +495,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
}
}
else
else
/* DELETE */
/* DELETE */
snprintf
(
sql
,
sizeof
(
sql
),
"delete from %s where "
,
relname
);
snprintf
(
sql
,
sizeof
(
sql
),
"delete from %s where "
,
relname
);
}
}
...
...
contrib/spi/timetravel.c
View file @
a5d7ba77
...
@@ -233,7 +233,7 @@ timetravel(PG_FUNCTION_ARGS)
...
@@ -233,7 +233,7 @@ timetravel(PG_FUNCTION_ARGS)
/* end of INSERT */
/* end of INSERT */
}
}
/* UPDATE/DELETE: */
/* UPDATE/DELETE: */
oldtimeon
=
SPI_getbinval
(
trigtuple
,
tupdesc
,
attnum
[
a_time_on
],
&
isnull
);
oldtimeon
=
SPI_getbinval
(
trigtuple
,
tupdesc
,
attnum
[
a_time_on
],
&
isnull
);
if
(
isnull
)
if
(
isnull
)
elog
(
ERROR
,
"timetravel (%s): %s must be NOT NULL"
,
relname
,
args
[
a_time_on
]);
elog
(
ERROR
,
"timetravel (%s): %s must be NOT NULL"
,
relname
,
args
[
a_time_on
]);
...
@@ -402,7 +402,7 @@ timetravel(PG_FUNCTION_ARGS)
...
@@ -402,7 +402,7 @@ timetravel(PG_FUNCTION_ARGS)
/* SPI_pfree(tmptuple); */
/* SPI_pfree(tmptuple); */
}
}
else
else
/* DELETE case */
/* DELETE case */
rettuple
=
trigtuple
;
rettuple
=
trigtuple
;
SPI_finish
();
/* don't forget say Bye to SPI mgr */
SPI_finish
();
/* don't forget say Bye to SPI mgr */
...
...
contrib/tablefunc/tablefunc.c
View file @
a5d7ba77
...
@@ -260,7 +260,7 @@ normal_rand(PG_FUNCTION_ARGS)
...
@@ -260,7 +260,7 @@ normal_rand(PG_FUNCTION_ARGS)
SRF_RETURN_NEXT
(
funcctx
,
Float8GetDatum
(
result
));
SRF_RETURN_NEXT
(
funcctx
,
Float8GetDatum
(
result
));
}
}
else
else
/* do when there is no more left */
/* do when there is no more left */
SRF_RETURN_DONE
(
funcctx
);
SRF_RETURN_DONE
(
funcctx
);
}
}
...
@@ -643,7 +643,7 @@ crosstab(PG_FUNCTION_ARGS)
...
@@ -643,7 +643,7 @@ crosstab(PG_FUNCTION_ARGS)
}
}
}
}
else
else
/* do when there is no more left */
/* do when there is no more left */
{
{
/* release SPI related resources */
/* release SPI related resources */
SPI_finish
();
SPI_finish
();
...
...
contrib/xml2/xslt_proc.c
View file @
a5d7ba77
...
@@ -65,7 +65,7 @@ xslt_process(PG_FUNCTION_ARGS)
...
@@ -65,7 +65,7 @@ xslt_process(PG_FUNCTION_ARGS)
parse_params
(
params
,
paramstr
);
parse_params
(
params
,
paramstr
);
}
}
else
else
/* No parameters */
/* No parameters */
params
[
0
]
=
NULL
;
params
[
0
]
=
NULL
;
/* Setup parser */
/* Setup parser */
...
...
src/backend/access/transam/xlog.c
View file @
a5d7ba77
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.17
0 2004/09/16 16:58:26 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.17
1 2004/10/07 15:21:51 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -4306,7 +4306,7 @@ StartupXLOG(void)
...
@@ -4306,7 +4306,7 @@ StartupXLOG(void)
ereport
(
FATAL
,
ereport
(
FATAL
,
(
errmsg
(
"requested recovery stop point is before end time of backup dump"
)));
(
errmsg
(
"requested recovery stop point is before end time of backup dump"
)));
else
else
/* ran off end of WAL */
/* ran off end of WAL */
ereport
(
FATAL
,
ereport
(
FATAL
,
(
errmsg
(
"WAL ends before end time of backup dump"
)));
(
errmsg
(
"WAL ends before end time of backup dump"
)));
}
}
...
...
src/backend/commands/typecmds.c
View file @
a5d7ba77
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.6
3 2004/08/29 05:06:41
momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.6
4 2004/10/07 15:21:52
momjian Exp $
*
*
* DESCRIPTION
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
* The "DefineFoo" routines take the parse tree and pick out the
...
@@ -1222,7 +1222,7 @@ AlterDomainDefault(List *names, Node *defaultRaw)
...
@@ -1222,7 +1222,7 @@ AlterDomainDefault(List *names, Node *defaultRaw)
new_record_repl
[
Anum_pg_type_typdefault
-
1
]
=
'r'
;
new_record_repl
[
Anum_pg_type_typdefault
-
1
]
=
'r'
;
}
}
else
else
/* Default is NULL, drop it */
/* Default is NULL, drop it */
{
{
new_record_nulls
[
Anum_pg_type_typdefaultbin
-
1
]
=
'n'
;
new_record_nulls
[
Anum_pg_type_typdefaultbin
-
1
]
=
'n'
;
new_record_repl
[
Anum_pg_type_typdefaultbin
-
1
]
=
'r'
;
new_record_repl
[
Anum_pg_type_typdefaultbin
-
1
]
=
'r'
;
...
...
src/backend/optimizer/geqo/geqo_ox2.c
View file @
a5d7ba77
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* OX2 operator according to Syswerda
* OX2 operator according to Syswerda
* (The Genetic Algorithms Handbook, ed L Davis)
* (The Genetic Algorithms Handbook, ed L Davis)
*
*
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_ox2.c,v 1.
9 2003/11/29 22:39:49 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_ox2.c,v 1.
10 2004/10/07 15:21:52 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -102,7 +102,7 @@ ox2(Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City *city_table)
...
@@ -102,7 +102,7 @@ ox2(Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City *city_table)
select
++
;
/* next city in the select list */
select
++
;
/* next city in the select list */
}
}
else
else
/* city isn't used yet, so inherit from tour2 */
/* city isn't used yet, so inherit from tour2 */
offspring
[
k
]
=
tour2
[
k
];
offspring
[
k
]
=
tour2
[
k
];
}
}
...
...
src/backend/utils/adt/acl.c
View file @
a5d7ba77
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.11
1 2004/08/29 05:06:49
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.11
2 2004/10/07 15:21:53
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1205,7 +1205,7 @@ makeaclitem(PG_FUNCTION_ARGS)
...
@@ -1205,7 +1205,7 @@ makeaclitem(PG_FUNCTION_ARGS)
ACLITEM_SET_IDTYPE
(
*
aclitem
,
ACL_IDTYPE_UID
);
ACLITEM_SET_IDTYPE
(
*
aclitem
,
ACL_IDTYPE_UID
);
}
}
else
else
/* (g_grantee != 0) */
/* (g_grantee != 0) */
{
{
aclitem
->
ai_grantee
=
g_grantee
;
aclitem
->
ai_grantee
=
g_grantee
;
...
...
src/backend/utils/adt/inet_net_pton.c
View file @
a5d7ba77
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
* SOFTWARE.
*
*
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_pton.c,v 1.1
8 2003/11/29 19:51:58 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_pton.c,v 1.1
9 2004/10/07 15:21:53 momjian
Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -206,7 +206,7 @@ inet_cidr_pton_ipv4(const char *src, u_char *dst, size_t size)
...
@@ -206,7 +206,7 @@ inet_cidr_pton_ipv4(const char *src, u_char *dst, size_t size)
else
if
(
*
odst
>=
128
)
/* Class B */
else
if
(
*
odst
>=
128
)
/* Class B */
bits
=
16
;
bits
=
16
;
else
else
/* Class A */
/* Class A */
bits
=
8
;
bits
=
8
;
/* If imputed mask is narrower than specified octets, widen. */
/* If imputed mask is narrower than specified octets, widen. */
if
(
bits
>=
8
&&
bits
<
((
dst
-
odst
)
*
8
))
if
(
bits
>=
8
&&
bits
<
((
dst
-
odst
)
*
8
))
...
...
src/backend/utils/adt/rowtypes.c
View file @
a5d7ba77
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/rowtypes.c,v 1.
6 2004/08/29 05:06:49
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/rowtypes.c,v 1.
7 2004/10/07 15:21:53
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -146,7 +146,7 @@ record_in(PG_FUNCTION_ARGS)
...
@@ -146,7 +146,7 @@ record_in(PG_FUNCTION_ARGS)
if
(
*
ptr
==
','
)
if
(
*
ptr
==
','
)
ptr
++
;
ptr
++
;
else
else
/* *ptr must be ')' */
/* *ptr must be ')' */
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_TEXT_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_TEXT_REPRESENTATION
),
errmsg
(
"malformed record literal:
\"
%s
\"
"
,
string
),
errmsg
(
"malformed record literal:
\"
%s
\"
"
,
string
),
...
...
src/backend/utils/error/elog.c
View file @
a5d7ba77
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.15
1 2004/09/22 03:55:26 neilc
Exp $
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.15
2 2004/10/07 15:21:54 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1972,7 +1972,7 @@ write_stderr(const char *fmt,...)
...
@@ -1972,7 +1972,7 @@ write_stderr(const char *fmt,...)
write_eventlog
(
EVENTLOG_ERROR_TYPE
,
errbuf
);
write_eventlog
(
EVENTLOG_ERROR_TYPE
,
errbuf
);
}
}
else
else
/* Not running as service, write to stderr */
/* Not running as service, write to stderr */
vfprintf
(
stderr
,
fmt
,
ap
);
vfprintf
(
stderr
,
fmt
,
ap
);
#endif
#endif
va_end
(
ap
);
va_end
(
ap
);
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
a5d7ba77
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.3
1 2004/09/02 20:07:50 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.3
2 2004/10/07 15:21:55 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -172,7 +172,7 @@ write_stderr(const char *fmt,...)
...
@@ -172,7 +172,7 @@ write_stderr(const char *fmt,...)
write_eventlog
(
EVENTLOG_ERROR_TYPE
,
errbuf
);
write_eventlog
(
EVENTLOG_ERROR_TYPE
,
errbuf
);
}
}
else
else
/* Not running as service, write to stderr */
/* Not running as service, write to stderr */
vfprintf
(
stderr
,
fmt
,
ap
);
vfprintf
(
stderr
,
fmt
,
ap
);
#endif
#endif
va_end
(
ap
);
va_end
(
ap
);
...
@@ -777,7 +777,7 @@ do_status(void)
...
@@ -777,7 +777,7 @@ do_status(void)
fprintf
(
stdout
,
_
(
"%s: a standalone backend
\"
postgres
\"
is running (PID: %ld)
\n
"
),
progname
,
pid
);
fprintf
(
stdout
,
_
(
"%s: a standalone backend
\"
postgres
\"
is running (PID: %ld)
\n
"
),
progname
,
pid
);
}
}
else
else
/* postmaster */
/* postmaster */
{
{
char
**
optlines
;
char
**
optlines
;
...
@@ -1285,7 +1285,7 @@ main(int argc, char **argv)
...
@@ -1285,7 +1285,7 @@ main(int argc, char **argv)
if
(
strchr
(
optarg
,
'\\'
))
if
(
strchr
(
optarg
,
'\\'
))
register_username
=
xstrdup
(
optarg
);
register_username
=
xstrdup
(
optarg
);
else
else
/* Prepend .\ for local accounts */
/* Prepend .\ for local accounts */
{
{
register_username
=
malloc
(
strlen
(
optarg
)
+
3
);
register_username
=
malloc
(
strlen
(
optarg
)
+
3
);
if
(
!
register_username
)
if
(
!
register_username
)
...
...
src/bin/pg_dump/pg_backup_tar.c
View file @
a5d7ba77
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.4
4 2004/08/29 05:06:53
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.4
5 2004/10/07 15:21:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -340,7 +340,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode)
...
@@ -340,7 +340,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode)
* Future: DO SEEK(0) and retry. */
* Future: DO SEEK(0) and retry. */
die_horribly
(
AH
,
modulename
,
"could not find file %s in archive
\n
"
,
filename
);
die_horribly
(
AH
,
modulename
,
"could not find file %s in archive
\n
"
,
filename
);
else
else
/* Any file OK, non left, so return NULL */
/* Any file OK, non left, so return NULL */
return
NULL
;
return
NULL
;
}
}
...
@@ -1104,7 +1104,7 @@ _tarPositionTo(ArchiveHandle *AH, const char *filename)
...
@@ -1104,7 +1104,7 @@ _tarPositionTo(ArchiveHandle *AH, const char *filename)
if
(
filename
)
if
(
filename
)
die_horribly
(
AH
,
modulename
,
"could not find header for file %s in tar archive
\n
"
,
filename
);
die_horribly
(
AH
,
modulename
,
"could not find header for file %s in tar archive
\n
"
,
filename
);
else
else
/* We're just scanning the archibe for the next file, so return null */
/* We're just scanning the archibe for the next file, so return null */
{
{
free
(
th
);
free
(
th
);
return
NULL
;
return
NULL
;
...
...
src/bin/psql/command.c
View file @
a5d7ba77
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.12
5 2004/08/29 05:06:54
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.12
6 2004/10/07 15:21:56
momjian Exp $
*/
*/
#include "postgres_fe.h"
#include "postgres_fe.h"
#include "command.h"
#include "command.h"
...
@@ -982,7 +982,7 @@ do_connect(const char *new_dbname, const char *new_user)
...
@@ -982,7 +982,7 @@ do_connect(const char *new_dbname, const char *new_user)
else
if
(
dbparam
!=
new_dbname
)
/* no new db */
else
if
(
dbparam
!=
new_dbname
)
/* no new db */
printf
(
gettext
(
"You are now connected as new user
\"
%s
\"
.
\n
"
),
new_user
);
printf
(
gettext
(
"You are now connected as new user
\"
%s
\"
.
\n
"
),
new_user
);
else
else
/* both new */
/* both new */
printf
(
gettext
(
"You are now connected to database
\"
%s
\"
as user
\"
%s
\"
.
\n
"
),
printf
(
gettext
(
"You are now connected to database
\"
%s
\"
as user
\"
%s
\"
.
\n
"
),
PQdb
(
pset
.
db
),
PQuser
(
pset
.
db
));
PQdb
(
pset
.
db
),
PQuser
(
pset
.
db
));
}
}
...
...
src/include/executor/execdebug.h
View file @
a5d7ba77
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.2
3 2004/08/29 04:13:0
6 momjian Exp $
* $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.2
4 2004/10/07 15:21:5
6 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -128,7 +128,7 @@ extern int NIndexTupleInserted;
...
@@ -128,7 +128,7 @@ extern int NIndexTupleInserted;
#define IncrIndexProcessed() NIndexTupleProcessed++
#define IncrIndexProcessed() NIndexTupleProcessed++
#define IncrIndexInserted() NIndexTupleInserted++
#define IncrIndexInserted() NIndexTupleInserted++
#else
#else
/*
stop compiler warnings */
/*
stop compiler warnings */
#define IncrRetrieved() (void)(0)
#define IncrRetrieved() (void)(0)
#define IncrAppended() (void)(0)
#define IncrAppended() (void)(0)
#define IncrDeleted() (void)(0)
#define IncrDeleted() (void)(0)
...
...
src/pl/plperl/plperl.c
View file @
a5d7ba77
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* ENHANCEMENTS, OR MODIFICATIONS.
* ENHANCEMENTS, OR MODIFICATIONS.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.5
2 2004/10/06 16:36:02
momjian Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.5
3 2004/10/07 15:21:57
momjian Exp $
*
*
**********************************************************************/
**********************************************************************/
...
@@ -1150,8 +1150,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
...
@@ -1150,8 +1150,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
}
}
else
else
/* perl string to Datum */
/* perl string to Datum */
retval
=
FunctionCall3
(
&
prodesc
->
result_in_func
,
retval
=
FunctionCall3
(
&
prodesc
->
result_in_func
,
PointerGetDatum
(
SvPV
(
perlret
,
PL_na
)),
PointerGetDatum
(
SvPV
(
perlret
,
PL_na
)),
ObjectIdGetDatum
(
prodesc
->
result_typioparam
),
ObjectIdGetDatum
(
prodesc
->
result_typioparam
),
...
...
src/port/exec.c
View file @
a5d7ba77
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/exec.c,v 1.2
8 2004/09/27 23:58:09
momjian Exp $
* $PostgreSQL: pgsql/src/port/exec.c,v 1.2
9 2004/10/07 15:21:57
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -277,8 +277,7 @@ find_my_exec(const char *argv0, char *retpath)
...
@@ -277,8 +277,7 @@ find_my_exec(const char *argv0, char *retpath)
log_error
(
"could not find a
\"
%s
\"
to execute"
,
argv0
);
log_error
(
"could not find a
\"
%s
\"
to execute"
,
argv0
);
return
-
1
;
return
-
1
;
#if 0
#if NOT_USED
/*
/*
* Win32 has a native way to find the executable name, but the above
* Win32 has a native way to find the executable name, but the above
* method works too.
* method works too.
...
...
src/port/getopt.c
View file @
a5d7ba77
...
@@ -119,7 +119,7 @@ const char *ostr;
...
@@ -119,7 +119,7 @@ const char *ostr;
return
BADCH
;
return
BADCH
;
}
}
else
else
/* white space */
/* white space */
optarg
=
nargv
[
optind
];
optarg
=
nargv
[
optind
];
place
=
EMSG
;
place
=
EMSG
;
++
optind
;
++
optind
;
...
...
src/test/regress/regress.c
View file @
a5d7ba77
/*
/*
* $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.6
0 2004/04/01 21:28:47 tgl
Exp $
* $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.6
1 2004/10/07 15:21:58 momjian
Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -586,7 +586,7 @@ ttdummy(PG_FUNCTION_ARGS)
...
@@ -586,7 +586,7 @@ ttdummy(PG_FUNCTION_ARGS)
cnulls
[
attnum
[
1
]
-
1
]
=
' '
;
cnulls
[
attnum
[
1
]
-
1
]
=
' '
;
}
}
else
else
/* DELETE */
/* DELETE */
{
{
cvals
[
attnum
[
1
]
-
1
]
=
newoff
;
/* stop_date eq current date */
cvals
[
attnum
[
1
]
-
1
]
=
newoff
;
/* stop_date eq current date */
cnulls
[
attnum
[
1
]
-
1
]
=
' '
;
cnulls
[
attnum
[
1
]
-
1
]
=
' '
;
...
@@ -641,7 +641,7 @@ ttdummy(PG_FUNCTION_ARGS)
...
@@ -641,7 +641,7 @@ ttdummy(PG_FUNCTION_ARGS)
SPI_freetuple
(
tmptuple
);
SPI_freetuple
(
tmptuple
);
}
}
else
else
/* DELETE */
/* DELETE */
rettuple
=
trigtuple
;
rettuple
=
trigtuple
;
SPI_finish
();
/* don't forget say Bye to SPI mgr */
SPI_finish
();
/* don't forget say Bye to SPI mgr */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment