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)
if
(
write
(
dbh
->
db_fd
,
data
,
dbh
->
db_rlen
)
!=
dbh
->
db_rlen
)
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
(
write
(
dbh
->
db_fd
,
&
end
,
1
)
!=
1
)
...
...
contrib/fuzzystrmatch/dmetaphone.c
View file @
a5d7ba77
...
...
@@ -48,8 +48,8 @@
/*
* $Revision: 1.
3
$
* $Id: dmetaphone.c,v 1.
3 2004/08/29 05:06:35
momjian Exp $
* $Revision: 1.
4
$
* $Id: dmetaphone.c,v 1.
4 2004/10/07 15:21:49
momjian Exp $
*/
...
...
@@ -950,7 +950,7 @@ DoubleMetaphone(char *str, char **codes)
current
+=
2
;
}
else
/* also takes care of 'HH' */
/* also takes care of 'HH' */
current
+=
1
;
break
;
...
...
contrib/intagg/int_aggregate.c
View file @
a5d7ba77
...
...
@@ -229,7 +229,7 @@ int_enum(PG_FUNCTION_ARGS)
pc
->
num
=
0
;
}
else
/* use an existing one */
/* use an existing one */
pc
=
(
CTX
*
)
fcinfo
->
context
;
/* Are we done yet? */
if
(
pc
->
num
>=
pc
->
p
->
items
)
...
...
@@ -242,7 +242,7 @@ int_enum(PG_FUNCTION_ARGS)
rsi
->
isDone
=
ExprEndResult
;
}
else
/* nope, return the next value */
/* nope, return the next value */
{
int
val
=
pc
->
p
->
array
[
pc
->
num
++
];
...
...
contrib/spi/refint.c
View file @
a5d7ba77
...
...
@@ -495,7 +495,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
}
else
/* DELETE */
/* DELETE */
snprintf
(
sql
,
sizeof
(
sql
),
"delete from %s where "
,
relname
);
}
...
...
contrib/spi/timetravel.c
View file @
a5d7ba77
...
...
@@ -233,7 +233,7 @@ timetravel(PG_FUNCTION_ARGS)
/* end of INSERT */
}
/* UPDATE/DELETE: */
/* UPDATE/DELETE: */
oldtimeon
=
SPI_getbinval
(
trigtuple
,
tupdesc
,
attnum
[
a_time_on
],
&
isnull
);
if
(
isnull
)
elog
(
ERROR
,
"timetravel (%s): %s must be NOT NULL"
,
relname
,
args
[
a_time_on
]);
...
...
@@ -402,7 +402,7 @@ timetravel(PG_FUNCTION_ARGS)
/* SPI_pfree(tmptuple); */
}
else
/* DELETE case */
/* DELETE case */
rettuple
=
trigtuple
;
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)
SRF_RETURN_NEXT
(
funcctx
,
Float8GetDatum
(
result
));
}
else
/* do when there is no more left */
/* do when there is no more left */
SRF_RETURN_DONE
(
funcctx
);
}
...
...
@@ -643,7 +643,7 @@ crosstab(PG_FUNCTION_ARGS)
}
}
else
/* do when there is no more left */
/* do when there is no more left */
{
/* release SPI related resources */
SPI_finish
();
...
...
contrib/xml2/xslt_proc.c
View file @
a5d7ba77
...
...
@@ -65,7 +65,7 @@ xslt_process(PG_FUNCTION_ARGS)
parse_params
(
params
,
paramstr
);
}
else
/* No parameters */
/* No parameters */
params
[
0
]
=
NULL
;
/* Setup parser */
...
...
src/backend/access/transam/xlog.c
View file @
a5d7ba77
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* 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)
ereport
(
FATAL
,
(
errmsg
(
"requested recovery stop point is before end time of backup dump"
)));
else
/* ran off end of WAL */
/* ran off end of WAL */
ereport
(
FATAL
,
(
errmsg
(
"WAL ends before end time of backup dump"
)));
}
...
...
src/backend/commands/typecmds.c
View file @
a5d7ba77
...
...
@@ -8,7 +8,7 @@
*
*
* 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
* The "DefineFoo" routines take the parse tree and pick out the
...
...
@@ -1222,7 +1222,7 @@ AlterDomainDefault(List *names, Node *defaultRaw)
new_record_repl
[
Anum_pg_type_typdefault
-
1
]
=
'r'
;
}
else
/* Default is NULL, drop it */
/* Default is NULL, drop it */
{
new_record_nulls
[
Anum_pg_type_typdefaultbin
-
1
]
=
'n'
;
new_record_repl
[
Anum_pg_type_typdefaultbin
-
1
]
=
'r'
;
...
...
src/backend/optimizer/geqo/geqo_ox2.c
View file @
a5d7ba77
...
...
@@ -6,7 +6,7 @@
* OX2 operator according to Syswerda
* (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)
select
++
;
/* next city in the select list */
}
else
/* city isn't used yet, so inherit from tour2 */
/* city isn't used yet, so inherit from tour2 */
offspring
[
k
]
=
tour2
[
k
];
}
...
...
src/backend/utils/adt/acl.c
View file @
a5d7ba77
...
...
@@ -8,7 +8,7 @@
*
*
* 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)
ACLITEM_SET_IDTYPE
(
*
aclitem
,
ACL_IDTYPE_UID
);
}
else
/* (g_grantee != 0) */
/* (g_grantee != 0) */
{
aclitem
->
ai_grantee
=
g_grantee
;
...
...
src/backend/utils/adt/inet_net_pton.c
View file @
a5d7ba77
...
...
@@ -14,7 +14,7 @@
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* 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"
...
...
@@ -206,7 +206,7 @@ inet_cidr_pton_ipv4(const char *src, u_char *dst, size_t size)
else
if
(
*
odst
>=
128
)
/* Class B */
bits
=
16
;
else
/* Class A */
/* Class A */
bits
=
8
;
/* If imputed mask is narrower than specified octets, widen. */
if
(
bits
>=
8
&&
bits
<
((
dst
-
odst
)
*
8
))
...
...
src/backend/utils/adt/rowtypes.c
View file @
a5d7ba77
...
...
@@ -8,7 +8,7 @@
*
*
* 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)
if
(
*
ptr
==
','
)
ptr
++
;
else
/* *ptr must be ')' */
/* *ptr must be ')' */
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_TEXT_REPRESENTATION
),
errmsg
(
"malformed record literal:
\"
%s
\"
"
,
string
),
...
...
src/backend/utils/error/elog.c
View file @
a5d7ba77
...
...
@@ -42,7 +42,7 @@
*
*
* 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,...)
write_eventlog
(
EVENTLOG_ERROR_TYPE
,
errbuf
);
}
else
/* Not running as service, write to stderr */
/* Not running as service, write to stderr */
vfprintf
(
stderr
,
fmt
,
ap
);
#endif
va_end
(
ap
);
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
a5d7ba77
...
...
@@ -4,7 +4,7 @@
*
* 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,...)
write_eventlog
(
EVENTLOG_ERROR_TYPE
,
errbuf
);
}
else
/* Not running as service, write to stderr */
/* Not running as service, write to stderr */
vfprintf
(
stderr
,
fmt
,
ap
);
#endif
va_end
(
ap
);
...
...
@@ -777,7 +777,7 @@ do_status(void)
fprintf
(
stdout
,
_
(
"%s: a standalone backend
\"
postgres
\"
is running (PID: %ld)
\n
"
),
progname
,
pid
);
}
else
/* postmaster */
/* postmaster */
{
char
**
optlines
;
...
...
@@ -1285,7 +1285,7 @@ main(int argc, char **argv)
if
(
strchr
(
optarg
,
'\\'
))
register_username
=
xstrdup
(
optarg
);
else
/* Prepend .\ for local accounts */
/* Prepend .\ for local accounts */
{
register_username
=
malloc
(
strlen
(
optarg
)
+
3
);
if
(
!
register_username
)
...
...
src/bin/pg_dump/pg_backup_tar.c
View file @
a5d7ba77
...
...
@@ -16,7 +16,7 @@
*
*
* 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)
* Future: DO SEEK(0) and retry. */
die_horribly
(
AH
,
modulename
,
"could not find file %s in archive
\n
"
,
filename
);
else
/* Any file OK, non left, so return NULL */
/* Any file OK, non left, so return NULL */
return
NULL
;
}
...
...
@@ -1104,7 +1104,7 @@ _tarPositionTo(ArchiveHandle *AH, const char *filename)
if
(
filename
)
die_horribly
(
AH
,
modulename
,
"could not find header for file %s in tar archive
\n
"
,
filename
);
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
);
return
NULL
;
...
...
src/bin/psql/command.c
View file @
a5d7ba77
...
...
@@ -3,7 +3,7 @@
*
* 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 "command.h"
...
...
@@ -982,7 +982,7 @@ do_connect(const char *new_dbname, const char *new_user)
else
if
(
dbparam
!=
new_dbname
)
/* no new db */
printf
(
gettext
(
"You are now connected as new user
\"
%s
\"
.
\n
"
),
new_user
);
else
/* both new */
/* both new */
printf
(
gettext
(
"You are now connected to database
\"
%s
\"
as user
\"
%s
\"
.
\n
"
),
PQdb
(
pset
.
db
),
PQuser
(
pset
.
db
));
}
...
...
src/include/executor/execdebug.h
View file @
a5d7ba77
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* 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;
#define IncrIndexProcessed() NIndexTupleProcessed++
#define IncrIndexInserted() NIndexTupleInserted++
#else
/*
stop compiler warnings */
/*
stop compiler warnings */
#define IncrRetrieved() (void)(0)
#define IncrAppended() (void)(0)
#define IncrDeleted() (void)(0)
...
...
src/pl/plperl/plperl.c
View file @
a5d7ba77
...
...
@@ -33,7 +33,7 @@
* ENHANCEMENTS, OR MODIFICATIONS.
*
* 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)
}
else
/* perl string to Datum */
/* perl string to Datum */
retval
=
FunctionCall3
(
&
prodesc
->
result_in_func
,
PointerGetDatum
(
SvPV
(
perlret
,
PL_na
)),
ObjectIdGetDatum
(
prodesc
->
result_typioparam
),
...
...
src/port/exec.c
View file @
a5d7ba77
...
...
@@ -7,7 +7,7 @@
*
*
* 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)
log_error
(
"could not find a
\"
%s
\"
to execute"
,
argv0
);
return
-
1
;
#if 0
#if NOT_USED
/*
* Win32 has a native way to find the executable name, but the above
* method works too.
...
...
src/port/getopt.c
View file @
a5d7ba77
...
...
@@ -119,7 +119,7 @@ const char *ostr;
return
BADCH
;
}
else
/* white space */
/* white space */
optarg
=
nargv
[
optind
];
place
=
EMSG
;
++
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"
...
...
@@ -586,7 +586,7 @@ ttdummy(PG_FUNCTION_ARGS)
cnulls
[
attnum
[
1
]
-
1
]
=
' '
;
}
else
/* DELETE */
/* DELETE */
{
cvals
[
attnum
[
1
]
-
1
]
=
newoff
;
/* stop_date eq current date */
cnulls
[
attnum
[
1
]
-
1
]
=
' '
;
...
...
@@ -641,7 +641,7 @@ ttdummy(PG_FUNCTION_ARGS)
SPI_freetuple
(
tmptuple
);
}
else
/* DELETE */
/* DELETE */
rettuple
=
trigtuple
;
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