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
3aff33aa
Commit
3aff33aa
authored
Mar 15, 2016
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos.
Oskari Saarenmaa
parent
fd658dbb
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
30 additions
and
30 deletions
+30
-30
contrib/pgcrypto/sha1.h
contrib/pgcrypto/sha1.h
+1
-1
contrib/sepgsql/label.c
contrib/sepgsql/label.c
+1
-1
doc/src/sgml/sources.sgml
doc/src/sgml/sources.sgml
+1
-1
src/backend/access/transam/twophase.c
src/backend/access/transam/twophase.c
+1
-1
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+2
-2
src/backend/optimizer/util/relnode.c
src/backend/optimizer/util/relnode.c
+1
-1
src/backend/parser/parse_target.c
src/backend/parser/parse_target.c
+1
-1
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/bufmgr.c
+1
-1
src/backend/storage/ipc/dsm_impl.c
src/backend/storage/ipc/dsm_impl.c
+1
-1
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/procarray.c
+1
-1
src/backend/storage/ipc/shm_mq.c
src/backend/storage/ipc/shm_mq.c
+1
-1
src/backend/utils/adt/json.c
src/backend/utils/adt/json.c
+1
-1
src/backend/utils/adt/windowfuncs.c
src/backend/utils/adt/windowfuncs.c
+1
-1
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-2
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/compress_io.c
+1
-1
src/bin/pg_dump/parallel.c
src/bin/pg_dump/parallel.c
+1
-1
src/bin/pg_upgrade/option.c
src/bin/pg_upgrade/option.c
+1
-1
src/bin/pgbench/pgbench.c
src/bin/pgbench/pgbench.c
+1
-1
src/include/storage/shm_toc.h
src/include/storage/shm_toc.h
+1
-1
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/execute.c
+1
-1
src/interfaces/ecpg/preproc/parse.pl
src/interfaces/ecpg/preproc/parse.pl
+1
-1
src/interfaces/ecpg/preproc/type.c
src/interfaces/ecpg/preproc/type.c
+1
-1
src/test/regress/expected/inherit.out
src/test/regress/expected/inherit.out
+2
-2
src/test/regress/expected/replica_identity.out
src/test/regress/expected/replica_identity.out
+1
-1
src/test/regress/sql/inherit.sql
src/test/regress/sql/inherit.sql
+2
-2
src/test/regress/sql/replica_identity.sql
src/test/regress/sql/replica_identity.sql
+1
-1
No files found.
contrib/pgcrypto/sha1.h
View file @
3aff33aa
...
@@ -63,7 +63,7 @@ extern void sha1_pad(struct sha1_ctxt *);
...
@@ -63,7 +63,7 @@ extern void sha1_pad(struct sha1_ctxt *);
extern
void
sha1_loop
(
struct
sha1_ctxt
*
,
const
uint8
*
,
size_t
);
extern
void
sha1_loop
(
struct
sha1_ctxt
*
,
const
uint8
*
,
size_t
);
extern
void
sha1_result
(
struct
sha1_ctxt
*
,
uint8
*
);
extern
void
sha1_result
(
struct
sha1_ctxt
*
,
uint8
*
);
/* compatibilty with other SHA1 source codes */
/* compatibil
i
ty with other SHA1 source codes */
typedef
struct
sha1_ctxt
SHA1_CTX
;
typedef
struct
sha1_ctxt
SHA1_CTX
;
#define SHA1Init(x) sha1_init((x))
#define SHA1Init(x) sha1_init((x))
...
...
contrib/sepgsql/label.c
View file @
3aff33aa
...
@@ -161,7 +161,7 @@ sepgsql_set_client_label(const char *new_label)
...
@@ -161,7 +161,7 @@ sepgsql_set_client_label(const char *new_label)
/*
/*
* sepgsql_xact_callback
* sepgsql_xact_callback
*
*
* A callback routine of transaction commit/abort/prepare. Comm
m
it or abort
* A callback routine of transaction commit/abort/prepare. Commit or abort
* changes in the client_label_pending list.
* changes in the client_label_pending list.
*/
*/
static
void
static
void
...
...
doc/src/sgml/sources.sgml
View file @
3aff33aa
...
@@ -860,7 +860,7 @@ BETTER: unrecognized node type: 42
...
@@ -860,7 +860,7 @@ BETTER: unrecognized node type: 42
Code in <productname>PostgreSQL</> should only rely on language
Code in <productname>PostgreSQL</> should only rely on language
features available in the C89 standard. That means a conforming
features available in the C89 standard. That means a conforming
C89 compiler has to be able to compile postgres, at least aside
C89 compiler has to be able to compile postgres, at least aside
from a few platform depend
a
nt pieces. Features from later
from a few platform depend
e
nt pieces. Features from later
revision of the C standard or compiler specific features can be
revision of the C standard or compiler specific features can be
used, if a fallback is provided.
used, if a fallback is provided.
</para>
</para>
...
...
src/backend/access/transam/twophase.c
View file @
3aff33aa
...
@@ -1613,7 +1613,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon)
...
@@ -1613,7 +1613,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon)
* transaction manager isn't active.
* transaction manager isn't active.
*
*
* It's also possible to move I/O out of the lock, but on
* It's also possible to move I/O out of the lock, but on
* every error we should check whether somebody commited our
* every error we should check whether somebody commit
t
ed our
* transaction in different backend. Let's leave this optimisation
* transaction in different backend. Let's leave this optimisation
* for future, if somebody will spot that this place cause
* for future, if somebody will spot that this place cause
* bottleneck.
* bottleneck.
...
...
src/backend/libpq/auth.c
View file @
3aff33aa
...
@@ -838,7 +838,7 @@ pg_GSS_recvauth(Port *port)
...
@@ -838,7 +838,7 @@ pg_GSS_recvauth(Port *port)
/*
/*
* Loop through GSSAPI message exchange. This exchange can consist of
* Loop through GSSAPI message exchange. This exchange can consist of
* multiple messags sent in both directions. First message is always from
* multiple messag
e
s sent in both directions. First message is always from
* the client. All messages from client to server are password packets
* the client. All messages from client to server are password packets
* (type 'p').
* (type 'p').
*/
*/
...
@@ -1078,7 +1078,7 @@ pg_SSPI_recvauth(Port *port)
...
@@ -1078,7 +1078,7 @@ pg_SSPI_recvauth(Port *port)
/*
/*
* Loop through SSPI message exchange. This exchange can consist of
* Loop through SSPI message exchange. This exchange can consist of
* multiple messags sent in both directions. First message is always from
* multiple messag
e
s sent in both directions. First message is always from
* the client. All messages from client to server are password packets
* the client. All messages from client to server are password packets
* (type 'p').
* (type 'p').
*/
*/
...
...
src/backend/optimizer/util/relnode.c
View file @
3aff33aa
...
@@ -501,7 +501,7 @@ build_join_rel(PlannerInfo *root,
...
@@ -501,7 +501,7 @@ build_join_rel(PlannerInfo *root,
* level.
* level.
*
*
* Note that if there are more than two rels in this relation, they could
* Note that if there are more than two rels in this relation, they could
* be divided between inner_rel and outer_rel in any arbitary way. We
* be divided between inner_rel and outer_rel in any arbit
r
ary way. We
* assume this doesn't matter, because we should hit all the same baserels
* assume this doesn't matter, because we should hit all the same baserels
* and joinclauses while building up to this joinrel no matter which we
* and joinclauses while building up to this joinrel no matter which we
* take; therefore, we should make the same decision here however we get
* take; therefore, we should make the same decision here however we get
...
...
src/backend/parser/parse_target.c
View file @
3aff33aa
...
@@ -115,7 +115,7 @@ transformTargetEntry(ParseState *pstate,
...
@@ -115,7 +115,7 @@ transformTargetEntry(ParseState *pstate,
*
*
* This code acts mostly the same for SELECT, UPDATE, or RETURNING lists;
* This code acts mostly the same for SELECT, UPDATE, or RETURNING lists;
* the main thing is to transform the given expressions (the "val" fields).
* the main thing is to transform the given expressions (the "val" fields).
* The exprKind parameter distinguishes these cases when necess
s
ary.
* The exprKind parameter distinguishes these cases when necessary.
*/
*/
List
*
List
*
transformTargetList
(
ParseState
*
pstate
,
List
*
targetlist
,
transformTargetList
(
ParseState
*
pstate
,
List
*
targetlist
,
...
...
src/backend/storage/buffer/bufmgr.c
View file @
3aff33aa
...
@@ -113,7 +113,7 @@ int effective_io_concurrency = 0;
...
@@ -113,7 +113,7 @@ int effective_io_concurrency = 0;
/*
/*
* GUC variables about triggering kernel writeback for buffers written; OS
* GUC variables about triggering kernel writeback for buffers written; OS
* depend
a
nt defaults are set via the GUC mechanism.
* depend
e
nt defaults are set via the GUC mechanism.
*/
*/
int
checkpoint_flush_after
=
0
;
int
checkpoint_flush_after
=
0
;
int
bgwriter_flush_after
=
0
;
int
bgwriter_flush_after
=
0
;
...
...
src/backend/storage/ipc/dsm_impl.c
View file @
3aff33aa
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
* substantially, but there should be few systems where we must make do
* substantially, but there should be few systems where we must make do
* with such poor tools.
* with such poor tools.
*
*
* As ever, Windows requires its own implemetation.
* As ever, Windows requires its own impleme
n
tation.
*
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
...
...
src/backend/storage/ipc/procarray.c
View file @
3aff33aa
...
@@ -71,7 +71,7 @@ typedef struct ProcArrayStruct
...
@@ -71,7 +71,7 @@ typedef struct ProcArrayStruct
* Known assigned XIDs handling
* Known assigned XIDs handling
*/
*/
int
maxKnownAssignedXids
;
/* allocated size of array */
int
maxKnownAssignedXids
;
/* allocated size of array */
int
numKnownAssignedXids
;
/* curr
r
ent # of valid entries */
int
numKnownAssignedXids
;
/* current # of valid entries */
int
tailKnownAssignedXids
;
/* index of oldest valid element */
int
tailKnownAssignedXids
;
/* index of oldest valid element */
int
headKnownAssignedXids
;
/* index of newest element, + 1 */
int
headKnownAssignedXids
;
/* index of newest element, + 1 */
slock_t
known_assigned_xids_lck
;
/* protects head/tail pointers */
slock_t
known_assigned_xids_lck
;
/* protects head/tail pointers */
...
...
src/backend/storage/ipc/shm_mq.c
View file @
3aff33aa
...
@@ -1104,7 +1104,7 @@ shm_mq_inc_bytes_read(volatile shm_mq *mq, Size n)
...
@@ -1104,7 +1104,7 @@ shm_mq_inc_bytes_read(volatile shm_mq *mq, Size n)
sender
=
mq
->
mq_sender
;
sender
=
mq
->
mq_sender
;
SpinLockRelease
(
&
mq
->
mq_mutex
);
SpinLockRelease
(
&
mq
->
mq_mutex
);
/* We shoudn't have any bytes to read without a sender. */
/* We shou
l
dn't have any bytes to read without a sender. */
Assert
(
sender
!=
NULL
);
Assert
(
sender
!=
NULL
);
SetLatch
(
&
sender
->
procLatch
);
SetLatch
(
&
sender
->
procLatch
);
}
}
...
...
src/backend/utils/adt/json.c
View file @
3aff33aa
...
@@ -508,7 +508,7 @@ parse_object(JsonLexContext *lex, JsonSemAction *sem)
...
@@ -508,7 +508,7 @@ parse_object(JsonLexContext *lex, JsonSemAction *sem)
*/
*/
lex
->
lex_level
++
;
lex
->
lex_level
++
;
/* we know this will succee
e
d, just clearing the token */
/* we know this will succeed, just clearing the token */
lex_expect
(
JSON_PARSE_OBJECT_START
,
lex
,
JSON_TOKEN_OBJECT_START
);
lex_expect
(
JSON_PARSE_OBJECT_START
,
lex
,
JSON_TOKEN_OBJECT_START
);
tok
=
lex_peek
(
lex
);
tok
=
lex_peek
(
lex
);
...
...
src/backend/utils/adt/windowfuncs.c
View file @
3aff33aa
...
@@ -67,7 +67,7 @@ rank_up(WindowObject winobj)
...
@@ -67,7 +67,7 @@ rank_up(WindowObject winobj)
up
=
true
;
up
=
true
;
}
}
/* We can advance the mark, but only *after* acc
c
ess to prior row */
/* We can advance the mark, but only *after* access to prior row */
WinSetMarkPosition
(
winobj
,
curpos
);
WinSetMarkPosition
(
winobj
,
curpos
);
return
up
;
return
up
;
...
...
src/backend/utils/misc/guc.c
View file @
3aff33aa
...
@@ -2391,7 +2391,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -2391,7 +2391,7 @@ static struct config_int ConfigureNamesInt[] =
GUC_UNIT_BLOCKS
GUC_UNIT_BLOCKS
},
},
&
checkpoint_flush_after
,
&
checkpoint_flush_after
,
/* see bufmgr.h: OS depend
a
nt default */
/* see bufmgr.h: OS depend
e
nt default */
DEFAULT_CHECKPOINT_FLUSH_AFTER
,
0
,
WRITEBACK_MAX_PENDING_FLUSHES
,
DEFAULT_CHECKPOINT_FLUSH_AFTER
,
0
,
WRITEBACK_MAX_PENDING_FLUSHES
,
NULL
,
NULL
,
NULL
NULL
,
NULL
,
NULL
},
},
...
@@ -2403,7 +2403,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -2403,7 +2403,7 @@ static struct config_int ConfigureNamesInt[] =
GUC_UNIT_BLOCKS
GUC_UNIT_BLOCKS
},
},
&
backend_flush_after
,
&
backend_flush_after
,
/* see bufmgr.h: OS depend
a
nt default */
/* see bufmgr.h: OS depend
e
nt default */
DEFAULT_BACKEND_FLUSH_AFTER
,
0
,
WRITEBACK_MAX_PENDING_FLUSHES
,
DEFAULT_BACKEND_FLUSH_AFTER
,
0
,
WRITEBACK_MAX_PENDING_FLUSHES
,
NULL
,
NULL
,
NULL
NULL
,
NULL
,
NULL
},
},
...
...
src/bin/pg_dump/compress_io.c
View file @
3aff33aa
...
@@ -296,7 +296,7 @@ DeflateCompressorZlib(ArchiveHandle *AH, CompressorState *cs, bool flush)
...
@@ -296,7 +296,7 @@ DeflateCompressorZlib(ArchiveHandle *AH, CompressorState *cs, bool flush)
if
(
zp
->
avail_out
<
cs
->
zlibOutSize
)
if
(
zp
->
avail_out
<
cs
->
zlibOutSize
)
{
{
/*
/*
* Any write function shoud do its own error checking but to
* Any write function shou
l
d do its own error checking but to
* make sure we do a check here as well...
* make sure we do a check here as well...
*/
*/
size_t
len
=
cs
->
zlibOutSize
-
zp
->
avail_out
;
size_t
len
=
cs
->
zlibOutSize
-
zp
->
avail_out
;
...
...
src/bin/pg_dump/parallel.c
View file @
3aff33aa
...
@@ -1262,7 +1262,7 @@ readMessageFromPipe(int fd)
...
@@ -1262,7 +1262,7 @@ readMessageFromPipe(int fd)
int
ret
;
int
ret
;
/*
/*
* The problem here is that we need to deal with several possibilites: we
* The problem here is that we need to deal with several possibilit
i
es: we
* could receive only a partial message or several messages at once. The
* could receive only a partial message or several messages at once. The
* caller expects us to return exactly one message however.
* caller expects us to return exactly one message however.
*
*
...
...
src/bin/pg_upgrade/option.c
View file @
3aff33aa
...
@@ -381,7 +381,7 @@ check_required_directory(char **dirpath, char **configpath,
...
@@ -381,7 +381,7 @@ check_required_directory(char **dirpath, char **configpath,
* adjust_data_dir
* adjust_data_dir
*
*
* If a configuration-only directory was specified, find the real data dir
* If a configuration-only directory was specified, find the real data dir
* by quering the running server. This has limited checking because we
* by quer
y
ing the running server. This has limited checking because we
* can't check for a running server because we can't find postmaster.pid.
* can't check for a running server because we can't find postmaster.pid.
*/
*/
void
void
...
...
src/bin/pgbench/pgbench.c
View file @
3aff33aa
...
@@ -535,7 +535,7 @@ getExponentialRand(TState *thread, int64 min, int64 max, double parameter)
...
@@ -535,7 +535,7 @@ getExponentialRand(TState *thread, int64 min, int64 max, double parameter)
uniform
=
1
.
0
-
pg_erand48
(
thread
->
random_state
);
uniform
=
1
.
0
-
pg_erand48
(
thread
->
random_state
);
/*
/*
* inner expresion in (cut, 1] (if parameter > 0), rand in [0, 1)
* inner expres
s
ion in (cut, 1] (if parameter > 0), rand in [0, 1)
*/
*/
Assert
((
1
.
0
-
cut
)
!=
0
.
0
);
Assert
((
1
.
0
-
cut
)
!=
0
.
0
);
rand
=
-
log
(
cut
+
(
1
.
0
-
cut
)
*
uniform
)
/
parameter
;
rand
=
-
log
(
cut
+
(
1
.
0
-
cut
)
*
uniform
)
/
parameter
;
...
...
src/include/storage/shm_toc.h
View file @
3aff33aa
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* This is intended to provide a simple way to divide a chunk of shared
* This is intended to provide a simple way to divide a chunk of shared
* memory (probably dynamic shared memory allocated via dsm_create) into
* memory (probably dynamic shared memory allocated via dsm_create) into
* a number of regions and keep track of the addreses of those regions or
* a number of regions and keep track of the addres
s
es of those regions or
* key data structures within those regions. This is not intended to
* key data structures within those regions. This is not intended to
* scale to a large number of keys and will perform poorly if used that
* scale to a large number of keys and will perform poorly if used that
* way; if you need a large number of pointers, store them within some
* way; if you need a large number of pointers, store them within some
...
...
src/interfaces/ecpg/ecpglib/execute.c
View file @
3aff33aa
/* src/interfaces/ecpg/ecpglib/execute.c */
/* src/interfaces/ecpg/ecpglib/execute.c */
/*
/*
* The aim is to get a simpler inteface to the database routines.
* The aim is to get a simpler inte
r
face to the database routines.
* All the tidieous messing around with tuples is supposed to be hidden
* All the tidieous messing around with tuples is supposed to be hidden
* by this function.
* by this function.
*/
*/
...
...
src/interfaces/ecpg/preproc/parse.pl
View file @
3aff33aa
...
@@ -632,7 +632,7 @@ sub preload_addons
...
@@ -632,7 +632,7 @@ sub preload_addons
my
$filename
=
$path
.
"
/ecpg.addons
";
my
$filename
=
$path
.
"
/ecpg.addons
";
open
(
my
$fh
,
'
<
',
$filename
)
or
die
;
open
(
my
$fh
,
'
<
',
$filename
)
or
die
;
# there may be multple lines starting ECPG: and then multiple lines of code.
# there may be mult
i
ple lines starting ECPG: and then multiple lines of code.
# the code need to be add to all prior ECPG records.
# the code need to be add to all prior ECPG records.
my
(
@needsRules
,
@code
,
$record
);
my
(
@needsRules
,
@code
,
$record
);
...
...
src/interfaces/ecpg/preproc/type.c
View file @
3aff33aa
...
@@ -446,7 +446,7 @@ ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
...
@@ -446,7 +446,7 @@ ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
sprintf
(
variable
,
"&(%s%s)"
,
prefix
?
prefix
:
""
,
name
);
sprintf
(
variable
,
"&(%s%s)"
,
prefix
?
prefix
:
""
,
name
);
/*
/*
* If we created a varchar structure atomatically, counter is
* If we created a varchar structure a
u
tomatically, counter is
* greater than 0.
* greater than 0.
*/
*/
if
(
counter
)
if
(
counter
)
...
...
src/test/regress/expected/inherit.out
View file @
3aff33aa
...
@@ -983,7 +983,7 @@ DETAIL: drop cascades to table inht2
...
@@ -983,7 +983,7 @@ DETAIL: drop cascades to table inht2
drop cascades to table inhts
drop cascades to table inhts
drop cascades to table inht3
drop cascades to table inht3
drop cascades to table inht4
drop cascades to table inht4
-- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints
-- Test non-inheritable indices [UNIQUE, EXCLUDE] con
s
traints
CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2));
CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2));
CREATE TABLE test_constraints_inh () INHERITS (test_constraints);
CREATE TABLE test_constraints_inh () INHERITS (test_constraints);
\d+ test_constraints
\d+ test_constraints
...
@@ -1049,7 +1049,7 @@ Inherits: test_ex_constraints
...
@@ -1049,7 +1049,7 @@ Inherits: test_ex_constraints
DROP TABLE test_ex_constraints_inh;
DROP TABLE test_ex_constraints_inh;
DROP TABLE test_ex_constraints;
DROP TABLE test_ex_constraints;
-- Test non-inheritable foreign key contraints
-- Test non-inheritable foreign key con
s
traints
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
CREATE TABLE test_foreign_constraints_inh () INHERITS (test_foreign_constraints);
CREATE TABLE test_foreign_constraints_inh () INHERITS (test_foreign_constraints);
...
...
src/test/regress/expected/replica_identity.out
View file @
3aff33aa
...
@@ -65,7 +65,7 @@ SELECT relreplident FROM pg_class WHERE oid = 'test_replica_identity'::regclass;
...
@@ -65,7 +65,7 @@ SELECT relreplident FROM pg_class WHERE oid = 'test_replica_identity'::regclass;
(1 row)
(1 row)
----
----
-- Make sure index cases succee
e
d
-- Make sure index cases succeed
----
----
-- succeed, primary key
-- succeed, primary key
ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_identity_pkey;
ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_identity_pkey;
...
...
src/test/regress/sql/inherit.sql
View file @
3aff33aa
...
@@ -299,7 +299,7 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
...
@@ -299,7 +299,7 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
DROP
TABLE
inht1
,
inhs1
CASCADE
;
DROP
TABLE
inht1
,
inhs1
CASCADE
;
-- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints
-- Test non-inheritable indices [UNIQUE, EXCLUDE] con
s
traints
CREATE
TABLE
test_constraints
(
id
int
,
val1
varchar
,
val2
int
,
UNIQUE
(
val1
,
val2
));
CREATE
TABLE
test_constraints
(
id
int
,
val1
varchar
,
val2
int
,
UNIQUE
(
val1
,
val2
));
CREATE
TABLE
test_constraints_inh
()
INHERITS
(
test_constraints
);
CREATE
TABLE
test_constraints_inh
()
INHERITS
(
test_constraints
);
\
d
+
test_constraints
\
d
+
test_constraints
...
@@ -321,7 +321,7 @@ ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraints_c_excl;
...
@@ -321,7 +321,7 @@ ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraints_c_excl;
DROP
TABLE
test_ex_constraints_inh
;
DROP
TABLE
test_ex_constraints_inh
;
DROP
TABLE
test_ex_constraints
;
DROP
TABLE
test_ex_constraints
;
-- Test non-inheritable foreign key contraints
-- Test non-inheritable foreign key con
s
traints
CREATE
TABLE
test_primary_constraints
(
id
int
PRIMARY
KEY
);
CREATE
TABLE
test_primary_constraints
(
id
int
PRIMARY
KEY
);
CREATE
TABLE
test_foreign_constraints
(
id1
int
REFERENCES
test_primary_constraints
(
id
));
CREATE
TABLE
test_foreign_constraints
(
id1
int
REFERENCES
test_primary_constraints
(
id
));
CREATE
TABLE
test_foreign_constraints_inh
()
INHERITS
(
test_foreign_constraints
);
CREATE
TABLE
test_foreign_constraints_inh
()
INHERITS
(
test_foreign_constraints
);
...
...
src/test/regress/sql/replica_identity.sql
View file @
3aff33aa
...
@@ -44,7 +44,7 @@ ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_iden
...
@@ -44,7 +44,7 @@ ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_iden
SELECT
relreplident
FROM
pg_class
WHERE
oid
=
'test_replica_identity'
::
regclass
;
SELECT
relreplident
FROM
pg_class
WHERE
oid
=
'test_replica_identity'
::
regclass
;
----
----
-- Make sure index cases succee
e
d
-- Make sure index cases succeed
----
----
-- succeed, primary key
-- succeed, primary key
...
...
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