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
444c5bf1
Commit
444c5bf1
authored
May 24, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL function bit_length
parent
8a987af4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+9
-1
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+9
-1
No files found.
doc/src/sgml/func.sgml
View file @
444c5bf1
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.5
8 2001/05/12 22:51:34
petere Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.5
9 2001/05/24 09:29:29
petere Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
...
...
@@ -775,6 +775,14 @@
<entry>PostgreSQL</entry>
</row>
<row>
<entry>bit_length(<parameter>string</parameter>)</entry>
<entry><type>integer</type></entry>
<entry>number of bits in string</entry>
<entry>bit_length('jose')</entry>
<entry>32</entry>
</row>
<row>
<entry>char_length(<parameter>string</parameter>) or character_length(<parameter>string</parameter>)</entry>
<entry><type>integer</type></entry>
...
...
src/include/catalog/pg_proc.h
View file @
444c5bf1
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.18
7 2001/05/22 16:37:16
petere Exp $
* $Id: pg_proc.h,v 1.18
8 2001/05/24 09:29:29
petere Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -2464,6 +2464,14 @@ DESCR("(internal)");
DATA
(
insert
OID
=
1799
(
oidout
PGUID
12
f
t
t
t
1
f
23
"0"
100
0
0
100
oidout
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
1810
(
bit_length
PGUID
14
f
t
t
t
1
f
23
"17"
100
0
0
100
"select octet_length($1) * 8"
-
));
DESCR
(
"length in bits"
);
DATA
(
insert
OID
=
1811
(
bit_length
PGUID
14
f
t
t
t
1
f
23
"25"
100
0
0
100
"select octet_length($1) * 8"
-
));
DESCR
(
"length in bits"
);
DATA
(
insert
OID
=
1812
(
bit_length
PGUID
14
f
t
t
t
1
f
23
"1560"
100
0
0
100
"select length($1)"
-
));
DESCR
(
"length in bits"
);
/* Selectivity estimators for LIKE and related operators */
DATA
(
insert
OID
=
1814
(
iclikesel
PGUID
12
f
t
f
t
4
f
701
"0 26 0 23"
100
0
0
100
iclikesel
-
));
DESCR
(
"restriction selectivity of ILIKE"
);
...
...
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